Manage homebrew on M1 mac with rosetta 2
Abhishek

Abhishek @abhishekbhakat

About: Software Developer

Location:
Pune, Maharashtra, India
Joined:
Aug 19, 2020

Manage homebrew on M1 mac with rosetta 2

Publish Date: Nov 19 '21
2 0

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

Comments 0 total

    Add comment