DEV Community

Cover image for Manage homebrew on M1 mac with rosetta 2
Abhishek
Abhishek

Posted on

Manage homebrew on M1 mac with rosetta 2

If you don't have rosetta installed:

softwareupdate --install-rosetta
Enter fullscreen mode Exit fullscreen mode

Install homebrew x86_64 :

arch -x86_64 /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
Enter fullscreen mode Exit fullscreen mode

Highly suggested to modify .zshrc to include :

alias ibrew='arch -x86_64 /usr/local/bin/brew'
alias mbrew='arch -arm64e /opt/homebrew/bin/brew'
Enter fullscreen mode Exit fullscreen mode

Going forward if needed to install x86_64 based module, use:

ibrew install pypy3
Enter fullscreen mode Exit fullscreen mode

Top comments (0)