The easiest way to install a number of Unix style applications and open source software onto macOS Monterey, Big Sur, Catalina, Mojave and earlier Sierra OS versions is via a package manager, unfortunately, macOS Monterey doesn’t come with one, but fortunately, some good folks care, they come in the form of Homebrew.
The install of Homebrew also works on macos Big Sur, macOS Catalina, macOS Mojave, (High)Sierra, El Capitan, and Yosemite, so macOS 10.10 – 12
Install Homebrew on macOS
To download install Homebrew run the install script on the command line as below and let the script do its thing:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
If you don’t have Apples Xcode Command Line Tools installed it will alert you and you need to hit enter/return on the command line to install the Xcode Command Line tool and carry on with the Homebrew installation you will also need to enter your admin password a couple of times in the process.
==> Checking for `sudo` access (which may request your password). Password: ==> This script will install: /usr/local/bin/brew /usr/local/share/doc/homebrew /usr/local/share/man/man1/brew.1 /usr/local/share/zsh/site-functions/_brew /usr/local/etc/bash_completion.d/brew /usr/local/Homebrew ==> The following new directories will be created: /usr/local/bin /usr/local/etc /usr/local/include /usr/local/lib /usr/local/sbin /usr/local/share /usr/local/var /usr/local/opt /usr/local/share/zsh /usr/local/share/zsh/site-functions /usr/local/var/homebrew /usr/local/var/homebrew/linked /usr/local/Cellar /usr/local/Caskroom /usr/local/Frameworks ==> The Xcode Command Line Tools will be installed.
From https://github.com/Homebrew/homebrew-core * [new branch] master -> origin/master Updating files: 100% (6206/6206), done. HEAD is now at b4a4beeca8d bde: update 188.8.131.52 bottle. ==> 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 (or will be during this `install` run). ==> Homebrew is run entirely by unpaid volunteers. Please consider donating: https://github.com/Homebrew/brew#donations ==> Next steps: - Run `brew help` to get started - Further documentation: https://docs.brew.sh
Then Homebrew is installed.
After this Homebrew is installed and ready to install other apps.
To get started run brew help can give some command example usage.
To check for any issues with the Homebrew install run:
One issue that typically comes up is an outdated or missing version of Xcode.
For the latest macOS, brew doctor will warn that the Homebrew install won’t be 100% if Xcode is not up to date, so update Xcode from the App Store.
To search for an application:
brew install packagename
To list all apps installed by Homebrew
To remove an installed application
brew remove packagename
To update Homebrew itself
To see what packages are out of date but not to upgrade them
To see what upgrade packages all or singular
brew update brew update packagename
To hold a package at a certain version
brew pin packagename
To release a package from a certain version
brew unpin packagename
To see what else you can do
Where does Homebrew install stuff …. ?, well it depends on whether you Mac has an Intel chip or an Apple chip
Intel Chip – Homebrew location
Apple Chip – Homebrew location
Where the brew lives.
You can see your Homebrew configuration by running
The output should be similar to …
[email protected] users % brew config HOMEBREW_VERSION: 3.3.2 ORIGIN: https://github.com/Homebrew/brew HEAD: 9daf5e2d28396c7a4379605e89e029d9fccb41e6 Last commit: 7 days ago Core tap ORIGIN: https://github.com/Homebrew/homebrew-core Core tap HEAD: b4a4beeca8d3b4c30906b1016bd344961403978c Core tap last commit: 68 minutes ago Core tap branch: master HOMEBREW_PREFIX: /usr/local HOMEBREW_CASK_OPTS:  HOMEBREW_CORE_GIT_REMOTE: https://github.com/Homebrew/homebrew-core HOMEBREW_MAKE_JOBS: 4 Homebrew Ruby: 2.6.8 => /System/Library/Frameworks/Ruby.framework/Versions/2.6/usr/bin/ruby CPU: quad-core 64-bit skylake Clang: 13.0.0 build 1300 Git: 2.30.1 => /Library/Developer/CommandLineTools/usr/bin/git Curl: 7.77.0 => /usr/bin/curl macOS: 12.0.1-x86_64 CLT: 184.108.40.206.1.1633545042
All installations via Homebrew are filed independently in the filing system in /usr/local/Cellar and linked into /usr/local/bin which is a directory which allows you to run these commands and apps as if part of the regular operating system.
This directory is also out of the SIP bounds so there should be no authentication macOS error dialog boxes.
Remove Home-brew and all packages
To remove the Home-brew installation and all packages it has installed..
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"
HomeBrew is a great package manager just start installing some apps and explore.!