How to install native ARM64 Homebrew using the official .pkg, migrate your Brewfile, and manually remove old /usr/local remains.
If you keep getting that constant macOS popup warning that "[App] needs to be updated" / won't work in future versions of macOS—or if you migrated your Mac from an older Intel machine years ago—your Homebrew setup probably still lives in /usr/local instead of /opt/homebrew.
With newer macOS releases phasing out Rosetta 2 and x86_64 support, keeping an Intel Homebrew installation around triggers system compatibility popups and brew doctor architecture warnings. Homebrew now ships an official .pkg installer for Apple Silicon, so you can switch cleanly without piping curl into bash.
Here is the quick, step-by-step migration.
1. Install Native Homebrew via .pkg
- Go to Homebrew GitHub Releases.
- Download the latest release
Homebrew-<version>.pkg. - Double-click and run the standard macOS installer.
This installs native ARM64 Homebrew into /opt/homebrew alongside your existing /usr/local setup.
2. Point Your Shell PATH to /opt/homebrew
Terminal will keep defaulting to /usr/local/bin/brew until you update your shell profile.
-
For
zsh(~/.zprofile):
echo 'eval "\$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofile
source ~/.zprofile
-
For
bash(~/.bash_profile): Addeval "$(/opt/homebrew/bin/brew shellenv)"to the bottom of~/.bash_profile(and comment out any old hardcoded/usr/local/...PATHlines), then reload:
source ~/.bash_profile
Verify the switch and populate package definitions:
which brew
# /opt/homebrew/bin/brew
brew update
3. Migrate Packages with a Brewfile
Dump your old Intel package list and reinstall everything natively:
# Export from old x86 Homebrew
/usr/local/bin/brew bundle dump --file=~/Brewfile
# Install into /opt/homebrew
brew bundle --file=~/Brewfile
(Tip: If an Intel GUI app already exists in /Applications and still triggers that macOS compatibility popup, run brew reinstall --cask <app-name> to replace it with the native ARM64 build.)
4. Manually Remove Old /usr/local Homebrew Remains
Leaving /usr/local Homebrew behind triggers brew doctor warnings about lingering x86 libraries (like gettext). Remove the old Homebrew directories and broken symlinks directly:
sudo rm -rf /usr/local/Homebrew \
/usr/local/Caskroom \
/usr/local/Cellar \
/usr/local/Frameworks \
/usr/local/opt \
/usr/local/var/homebrew \
/usr/local/etc/bash_completion.d \
/usr/local/share/zsh/site-functions \
/usr/local/share/doc/homebrew
# Remove broken symlinks left in /usr/local
sudo find /usr/local -type l ! -exec test -e {} \; -delete
5. Run brew doctor
brew doctor
Clean up any deprecated formulae carried over from your Brewfile (e.g., old python@3.10 or postgresql@14 versions) or system root certificate notices, and you're running 100% native Apple Silicon Homebrew—with no more compatibility popups.
Top comments (0)