Skip to content

Instantly share code, notes, and snippets.

@khoan
Created August 11, 2022 06:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save khoan/2694752586217af807518e576f6da9b8 to your computer and use it in GitHub Desktop.
Save khoan/2694752586217af807518e576f6da9b8 to your computer and use it in GitHub Desktop.

Migrate Homebrew from Intel to M1

Dump install packages

brew bundle dump

Remove Intel homebrew

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

read more at Homebrew/discussions#2408 (comment)

alternatively,

uninstall.sh --path=/usr/local

read more at Homebrew/discussions#417 (reply in thread)

Install M1 homebrew

read more at https://github.com/homebrew/install#install-homebrew-on-macos-or-linux

Update PATH

$ cat /etc/paths
/opt/homebrew/bin # remove /usr/local/bin
/usr/bin
/bin
/usr/sbin
/sbin
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment