Skip to content

Instantly share code, notes, and snippets.

@poma
Last active November 3, 2021 13:25
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 poma/5964d31885eec4fdd1fbaef815417e6c to your computer and use it in GitHub Desktop.
Save poma/5964d31885eec4fdd1fbaef815417e6c to your computer and use it in GitHub Desktop.
Updates homebrew after migration to apple silicon
# reinstall arm64 brew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
# add this to your env
alias brew-old="arch -x86_64 /usr/local/bin/brew"
export PATH="/opt/homebrew/bin:$PATH"
# reinstall packages
brew-old leaves | xargs brew install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment