Install Homebrew on Mac OS
Quick guide on how to install Homebrew on Mac OS.
- Go to https://brew.sh/ and click on the clipboard:
2. Open the terminal (just search “Terminal” in Spotlight) and paste the command from brew.sh.
It will ask for your sudo password. Press enter and let it finish.
Once it finishes, it will ask you to copy and paste another two lines in the terminal to add Brew to your PATH (basically to tell your terminal where “brew” install is located).
It will look like this:
(echo; echo ‘eval “$(/opt/homebrew/bin/brew shellenv)”’) >> /Users/your_username/.zprofile
eval “$(/opt/homebrew/bin/brew shellenv)”
Once you run those two lines, your Brew installation is complete. You can confirm everything is ready by running this command:
brew doctor