Run using old install:
$ brew bundle dump
Reinstall Homebrew for the M1:
$ /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Update your PATH
so the new install takes precedence (e.g. in your .zshrc
):
export PATH="$HOME/bin:/opt/homebrew/bin:/usr/local/bin:$PATH"
Reload your config:
$ source ~/.zshrc
Reinstall packages for the M1:
$ brew bundle --file Brewfile
Optionally create alias to access old install (e.g. in your .zshrc
):
alias oldbrew=/usr/local/bin/brew