macOS Homebrew not updating...

PhilPhil
3 min read

How to Address the Homebrew Warnings on macOS Ventura 13.3.1. ?

~ % brew --update
Warning: You are using macOS 13.3.
We do not provide support for this pre-release version.
You will encounter build failures with some formulae.
Please create pull requests instead of asking for help on Homebrew's Github,Discourse,Twitter or IRC.
You are responsible for resolving any issues you experience while you are running this pre-release version.
  • First, we need to install Xcode

    ~ % xcode-select --install

Might take a few minutes to install. After completing the installation, Verify the installation status.

  • Verifying the installation status

    ~ % usr/bin/xcodebuild -version

~ % usr/bin/xcodebuild -version
Xcode 14.3
Build version 14E22b
  • Next, update the brew

    ~ % brew update

The updates should go well if every command is successfully executed. However, we will still encounter a few warnings, which we will address in the next steps.

  • After the brew is updated, try brew doctor

    ~ % brew doctor

You might get these warnings, so to address it just follow the instructions.

Warning: You have an unnecessary local Core tap!
This can cause problems installing up-to-date formulae.
Please remove it by running:
brew untap homebrew/core

Warning: Broken symlinks were found. 
Remove them with `brew cleanup`:
  • Removing unnecessary local core tap

    ~ % brew untap homebrew/core

  • Removing the broken symlinks

    ~ % brew cleanup

  • Now, try brew doctor

    ~ % brew doctor

~ % brew doctor
Warning: You have not agreed to the Xcode license.
Agree to the license by opening Xcode.app or running.

Oops! We're still getting the Warning, seems like we haven't agreed to the Xcode license. You can agree on it by opening the Xcode.app that you have installed on your Mac, however this time we will agree on it via terminal executing the commands.

  • Agreeing to the Xcode license

    ~ % sudo xcodebuild -license

    // type agree

Now, try brew doctor and brew -v

~ % brew doctor
your system is ready to brew.
~ % brew -v
Homebrew 4.0.16

There you go, We have successfully updated the Homebrew on our MacOS Ventura. Thanks for reading. I hope you found this article helpful and insightful.


Glossary

・Homebrew/brew: A package manager that allows you to install, update and manage software packages and dependencies on your Mac.

・Brew Doctor: A command used in the macOS Terminal to diagnose potential issues with your Homebrew installation. This is recommended command if your brew is not working properly since this command provides instructions and suggestions for resolving errors.

・Why install Xcode?: To use Homebrew, you need to have the Command Line Tools for Xcode installed on your Mac. Once you have installed you can install Homebrew and use it.

0
Subscribe to my newsletter

Read articles from Phil directly inside your inbox. Subscribe to the newsletter, and don't miss out.

Written by

Phil
Phil

Hello and welcome to my blog! I am a passionate professional with a diverse background in Quality Assurance (QA) and System Engineering, and I am currently working as an AWS Engineer. While my experience in AWS spans a relatively short period, my enthusiasm for Cloud Technology is unwavering. Throughout my career, I have gained hands-on experience in a wide range of AWS services, both through my professional work and dedicated self-study. This practical exposure has provided me with valuable insights and deepened my understanding of leveraging AWS to build robust and scalable solutions. On this blog, I aim to share my experiences, insights, and practical guidance on AWS services and their application in real-world scenarios. Whether you are a cloud enthusiast, an aspiring AWS professional, or someone simply looking to deepen your understanding of cloud technology, I invite you to join me on this exciting journey. Thank you for visiting my blog, and I look forward to connecting and engaging with you as we delve into the world of AWS and cloud technology.