How to Install Homebrew on MacOS Sonoma & Ventura

Dec 28, 2022 - 8 Comments

Homebrew on MacOS Ventura

HomeBrew, the command line package manager, has native support for MacOS Sonoma 14 and macOS Ventura 13, so if you have recently updated to macOS Ventura or bought a new Mac with 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 Sonoma & MacOS Ventura

If the Mac is brand new with MacOS 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.

  1. Launch the Terminal application on the Mac with Sonoma/Ventura
  2. Run the following command first to install macOS Command Line Tools – if your Mac already has CLT installed you can skip this part
  3. xcode-select --install

  4. When that finishes, run the following command to install Homebrew on MacOS Sonoma or macOS Ventura
  5. /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

  6. Hit return and let installation complete

There you go, you’ve successfully installed both Command Line Tools (from Apple) and HomeBrew onto the Mac with MacOS 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 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.

.

Related articles:

Posted by: Paul Horowitz in Command Line, Mac OS, Tips & Tricks

8 Comments

» Comments RSS Feed

  1. Jan says:

    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?

  2. office.icarus says:

    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.

  3. office.icarus says:

    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)

    • office.icarus says:

      resolved “Error: Failed –force –quiet” via…

      sudo chown -R $(whoami) $(brew –prefix)/*

      immediately attempted reinstall after running above command; successful.

  4. Steve Williams says:

    Thanks. It works perfectly on my new MacBook!!!

  5. Steve Williams says:

    Thanks. It works perfectly!!!

  6. demetrio says:

    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

  7. Michael Kemper says:

    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

Leave a Reply

 

Shop on Amazon.com and help support OSXDaily!

Subscribe to OSXDaily

Subscribe to RSS Subscribe to Twitter Feed Follow on Facebook Subscribe to eMail Updates

Tips & Tricks

News

iPhone / iPad

Mac

Troubleshooting

Shop on Amazon to help support this site