
Want to install Homebrew on an M1, M2, M3, M4, M5 or M6 Mac? The process is essentially the same across Apple Silicon Macs. The important things are using a native Terminal session, installing Homebrew in the right location and making sure your shell can find the brew command afterward.
We’ll go through the official Terminal installer and the alternative PKG installer, then check that everything is working. If you’ve already installed Homebrew but keep getting zsh: command not found: brew, jump to the PATH section. You probably don’t need to install it again.
Updated: November 23, 2026. The original installation screenshots were taken in 2022 and are retained as examples; the current installer may look different.
Check macOS compatibility before installing Homebrew
Apple Silicon Macs use Homebrew’s /opt/homebrew installation directory. The instructions below apply to M1 through M6 Macs, but the macOS version determines whether your setup is officially supported.
| macOS version | Homebrew support on Apple Silicon |
|---|---|
| Golden Gate 27 | Tier 1 |
| Tahoe 26 | Tier 1 |
| Sequoia 15 | Tier 1 |
| Sonoma 14 | Tier 3 |
| Ventura 13 | Tier 3 |
| Monterey 12 | Tier 3 |
| Big Sur 11 | Tier 3 |
As of November 2026, Tier 1 means Homebrew provides its normal testing and precompiled package support when your Mac also meets the other Tier 1 requirements. Tier 3 means unsupported, not necessarily impossible to install: Homebrew may still run, but some software will be unavailable or may require compiling from source. A supported Homebrew installation also does not guarantee that every individual app supports your version of macOS.
Intel Macs are a separate case. Homebrew moved Intel macOS to Tier 3 in September 2026 and stopped producing new Intel bottles. This article is for Apple Silicon; don’t follow the /opt/homebrew PATH instructions on an Intel Mac.
Method 1: Install Homebrew using Terminal
Open Terminal from Applications > Utilities, or search for it with Spotlight.
1. Check that Terminal is running natively
Run:
uname -m
On an Apple Silicon Mac running Terminal natively, the result should be:
arm64
If you see x86_64 on an Apple Silicon Mac, the Terminal process may be running through Rosetta. Switch to a native Terminal session before installing Homebrew. Otherwise, you can end up with an Intel installation in /usr/local when you wanted the Apple Silicon installation.
2. Run the official installer
Copy the installation command from Homebrew’s official website:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
This downloads and executes the installer. You can inspect its source in the official installation repository before running it. The script tells you what it plans to change and asks for confirmation.
When Terminal requests your administrator password, type it and press Return. No characters will appear while you type. That’s normal.

The installer may offer to install Apple’s Xcode Command Line Tools, depending on your Mac and what is already installed. Current Homebrew can install precompiled bottles and casks without those tools, but building formulae from source can require them. You don’t need the full Xcode app just to install Homebrew.
3. Read the next steps
When installation finishes, check Terminal for a Next steps section. It may include commands for making Homebrew available in your shell. Follow those instructions if they’re shown.

These are genuine screenshots from the original 2022 FSM guide, not screenshots of Homebrew’s 2026 installer.
Method 2: Use the official PKG installer
Don’t want to paste an installation script into Terminal? Homebrew also provides a macOS PKG installer. It is available for Apple Silicon Macs running macOS Sequoia 15 or newer.
- Open the official Homebrew releases page.
- Choose the latest stable release and find the
.pkgdownload under its assets. - Open the downloaded package and follow the macOS installer prompts.
- When it finishes, open a new Terminal window and verify the installation using the commands below.
The PKG method also installs Homebrew in /opt/homebrew. You only need one installation method. If you’re already using Homebrew successfully, there’s no reason to run the other installer.
Fix “zsh: command not found: brew”
Homebrew can be installed correctly even when Terminal doesn’t recognize brew. This usually means Homebrew isn’t in your shell’s PATH, which is the list of directories Terminal searches for commands.

First, check whether the Apple Silicon Homebrew executable exists by running its full path:
/opt/homebrew/bin/brew --version
If that prints a Homebrew version, the installation is there. On the default macOS shell, Zsh, and only if the installer hasn’t already added the configuration, run:
echo 'eval "$(/opt/homebrew/bin/brew shellenv zsh)"' >> ~/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv zsh)"
The first line saves the setup in ~/.zprofile for future Terminal login sessions. The second applies it now. Don’t keep appending the same line if it’s already present in your profile.
If you use Bash as your login shell instead, the equivalent is:
echo 'eval "$(/opt/homebrew/bin/brew shellenv bash)"' >> ~/.bash_profile
eval "$(/opt/homebrew/bin/brew shellenv bash)"
Use the commands for your actual shell, not both sets. If the full path to brew doesn’t work either, review the installer output or rerun the official installer after checking what it intends to change. Adding a PATH entry cannot repair an incomplete installation.
Verify that Homebrew is working
Open a fresh Terminal window and run:
brew --version
Then check Homebrew’s location:
brew --prefix
For a standard Apple Silicon installation, the second command should print:
/opt/homebrew
You can also check for common configuration warnings:
brew doctor
Read any warnings before acting on them. A warning doesn’t always mean Homebrew is unusable, and randomly changing permissions or deleting folders is not a troubleshooting strategy.
Common installation problems
Terminal reports x86_64 on an M-series Mac
Make sure Terminal or your chosen terminal app isn’t running using Rosetta. Quit the app, open a native session and confirm that uname -m returns arm64. If you previously installed an Intel copy of Homebrew, don’t delete /usr/local to try to fix it. That location can contain other software and files.
Installation fails while setting up developer tools
Follow the specific installer message. If Command Line Tools are required for the operation you’re trying to perform, macOS provides this command to request them:
xcode-select --install
This opens Apple’s installation flow; it doesn’t silently install a package. If the tools are already installed, the command may tell you so. Check Homebrew’s installation documentation before changing an existing developer setup.
Homebrew works, but a package won’t install
That doesn’t always mean Homebrew was installed incorrectly. Your macOS version may be outside the supported tiers, or the specific package may have its own requirements. Read the error and check the package in the official Homebrew directory before trying another installation method.
Homebrew analytics and privacy
Homebrew collects aggregate usage analytics, which its documentation describes in detail. If you’d rather not send those events, run:
brew analytics off
To inspect the current setting:
brew analytics state
Opting out of analytics doesn’t stop Homebrew from connecting to the servers needed to download packages and update its package information.
What to do after installing Homebrew
Now that Homebrew is set up, you can install command line tools and regular Mac apps, check for updates or save your installed software in a Brewfile. Rather than duplicate all those instructions here, we’ve covered them in the Homebrew Starter Guide. It explains formulae versus casks, the commands worth knowing, cleanup, BrewUI and basic security checks.
For the installation itself, remember the essentials: use a native Apple Silicon Terminal, keep Homebrew in /opt/homebrew, and configure your shell if it can’t find brew. Once brew --version and brew --prefix give the expected results, you’re ready to use it.

