A minimalist guide to migrate Homebrew from Intel Macs to Apple Silicon Macs in simple 5-steps

  1. Open the CLI (Terminal/iTerm2) of your choice and install Xcode command line tools. The installation typically takes about ~15 minutes.
xcode-select --install

2. (Re)Install homebrew (this time to a new path because of the Silicon CPU architecture)

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

3. Add the new install location to your profile (assuming it’s zprofile) & PATH (remember to change <profile> with your Mac profile name.

echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/<profile>/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"

4. Create a dump of all the packages from your old homebrew location. The Brewfile will placed in your home directory.

/usr/local/bin/brew bundle dump

5. Simply run brew bundle to start installing all the packages from the Brewfile on to the new location.

Visit Now

Tags: Apple Silicon