Homebrew is a powerful package manager for macOS that lets you easily install and manage software from the command line. This guide walks you through installing Homebrew on your Mac.
💡 This is an independent guide for installing Homebrew on macOS. See full disclaimer at the end.
- A Mac running macOS Ventura or newer (older versions are usually supported too)
- Administrator access
- An internet connection
Open Terminal using one of the following methods:
- Navigate to
Applications > Utilities > Terminal - Press
Cmd + Space, typeTerminal, and hit Enter
Run the following command in the Terminal:
xcode-select --installA prompt will appear to install the tools. Accept and wait for the installation to complete.
Paste the following command into your Terminal:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"Follow the on-screen instructions. You may be prompted to enter your password.
After installation, the script will output instructions to add Homebrew to your shell profile. For example, if you use Zsh:
echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"Follow the instructions provided based on your shell type (e.g., Bash, Zsh).
To check if Homebrew was installed correctly, run:
brew doctorIf everything is set up, you'll see:
Your system is ready to brew.
To ensure Homebrew is up to date, run:
brew updateHomebrew is now installed. You can start installing packages like this:
brew install <package-name>For more details, check the official Homebrew documentation.
This project is an independent guide created to help macOS users install and configure Homebrew. It is not affiliated with, endorsed by, or maintained by the Homebrew project or its contributors. For the official documentation, visit brew.sh.