How to Install Homebrew on macOS Sequoia, Sonoma, & Ventura
HomeBrew, the command line package manager, has native support for macOS Sequoia 15, MacOS Sonoma 14, and macOS Ventura 13, so if you have recently updated to macOS Ventura or bought a new Mac with Sequoia/Sonoma/Ventura preinstalled, you’ll probably want to install Homebrew on the Mac running Ventura. Like most command line tools, HomeBrew is intended for advanced users that like to have a broad range of command line utilities available to them, this is really not something an average user needs to bother with.
If you’re already familiar with installing Homebrew on a Mac then you’ll find this process to be something you’ve done before. However, it’s worth noting the install script URL has changed, so if you’re using an older one it will not work anymore as they changed the ‘master’ nomenclature to ‘HEAD’ in the URL and elsewhere.
Installing HomeBrew on macOS Sequoia, Sonoma, & MacOS Ventura
If the Mac is brand new with macOS Sequoia, Sonoma or Ventura, or you haven’t installed HomeBrew before, you’ll likely need to install Command Line tools first, so we will include that in this process.
- Launch the Terminal application on the Mac with Sequoia/Sonoma/Ventura
- Run the following command first to install macOS Command Line Tools – if your Mac already has CLT installed you can skip this part
- When that finishes, run the following command to install Homebrew on macOS Sequoia, Sonoma, or macOS Ventura
- Hit return and let installation complete
xcode-select --install
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
There you go, you’ve successfully installed both Command Line Tools (from Apple) and HomeBrew onto the Mac with macOS Sequoia / Sonoma / Ventura.
You likely already have some utilities in mind, but if you’re looking for a handful of handy packages to get started, check out this list of some of the best Homebrew packages for Mac.
You can also review our Homebrew articles to get more ideas of what you can do with the ever-useful command line package manager on the Mac.
How did it go to install Homebrew in macOS Sequoia, MacOS Sonoma or macOS Ventura? Did you run into any snags? Have any issues? Find any valuable tips or packages you’d like to share? Let us know in the comments.
After I installed home-brew on MacBook Air with the newest Sonoma update, it still prompts me to include brew in the PATH, like it used to in older versions of OS.
Do you have any particular idea what could be the issue?
Error: Failed to link all completions, docs and manpages:
Permission denied @ rb_file_s_symlink – (../../../Homebrew/completions/zsh/_brew, /usr/local/share/zsh/site-functions/_brew)
Failed during: /usr/local/bin/brew update –force –quiet
[user-redacted]@[device-redacted]s-MacBook-Pro ~ %
– – – – – –
specs: mbp 15-inch, 2017. macOS 13.1 (Ventura)
– – – – – –
EDIT: resolved via…
sudo chown -R $(whoami) $(brew –prefix)/*
immediately attempted reinstall after running above command; successful.
Failed initial install…
Error: Failed to link all completions, docs and manpages:
Permission denied @ rb_file_s_symlink – (../../../Homebrew/completions/zsh/_brew, /usr/local/share/zsh/site-functions/_brew)
Failed during: /usr/local/bin/brew update –force –quiet
[user-redacted]@[device-redacted]s-MacBook-Pro ~ %
specs: mbp 15-inch, 2017. macOS 13.1 (Ventura)
resolved “Error: Failed –force –quiet” via…
sudo chown -R $(whoami) $(brew –prefix)/*
immediately attempted reinstall after running above command; successful.
Thanks. It works perfectly on my new MacBook!!!
Thanks. It works perfectly!!!
Press RETURN/ENTER to continue or any other key to abort:
==> /usr/bin/sudo /usr/sbin/chown -R asd:admin /opt/homebrew
==> Downloading and installing Homebrew…
remote: Enumerating objects: 549, done.
remote: Counting objects: 100% (450/450), done.
remote: Compressing objects: 100% (117/117), done.
remote: Total 549 (delta 361), reused 386 (delta 326), pack-reused 99
Receiving objects: 100% (549/549), 392.41 KiB | 2.31 MiB/s, done.
Resolving deltas: 100% (379/379), completed with 123 local objects.
From https://github.com/Homebrew/brew
462c69d3d..7e77b89e2 master -> origin/master
+ f51b9db5f…a0e43115d setup-homebrew-test -> origin/setup-homebrew-test (forced update)
HEAD is now at 7e77b89e2 Merge pull request #14428 from Homebrew/dependabot/bundler/Library/Homebrew/rubocop-1.44.1
error: Not a valid ref: refs/remotes/origin/master
fatal: ambiguous argument ‘refs/remotes/origin/master’: unknown revision or path not in the working tree.
Use ‘–‘ to separate paths from revisions, like this:
‘git […] — […]’
Warning: /opt/homebrew/bin is not in your PATH.
Instructions on how to configure your shell for Homebrew
can be found in the ‘Next steps’ section below.
==> Installation successful!
==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
https://docs.brew.sh/Analytics
No analytics data has been sent yet (nor will any be during this install run).
==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
https://github.com/Homebrew/brew#donations
==> Next steps:
– Run these three commands in your terminal to add Homebrew to your PATH:
echo ‘# Set PATH, MANPATH, etc., for Homebrew.’ >> /Users/asd/.zprofile
echo ‘eval “$(/opt/homebrew/bin/brew shellenv)”‘ >> /Users/asd/.zprofile
eval “$(/opt/homebrew/bin/brew shellenv)”
– Run brew help to get started
– Further documentation:
https://docs.brew.sh
Error:
homebrew-core is a shallow clone.
To `brew update`, first run:
git -C /usr/local/Homebrew/Library/Taps/homebrew/homebrew-core fetch –unshallow
This command may take a few minutes to run due to the large size of the repository.
This restriction has been made on GitHub’s request because updating shallow
clones is an extremely expensive operation due to the tree layout and traffic of
Homebrew/homebrew-core and Homebrew/homebrew-cask. We don’t do this for you
automatically to avoid repeatedly performing an expensive unshallow operation in
CI systems (which should instead be fixed to not use shallow clones). Sorry for
the inconvenience!
Failed during: /usr/local/bin/brew update –force –quiet