How to install Homebrew on ARM processor in Apple M1 chip processor
Before installing Homebrew you will need to install Rosetta2 emulator for the new ARM silicon (M1 chip). 1- install Rosetta2 via terminal using command line :
/usr/sbin/softwareupdate --install-rosetta --agree-to-license
This will install rosetta2 .
2- After installing Rosetta2 above you can then use the Homebrew cmd and install Homebrew for ARM M1 chip: using this command line:
arch -x86_64 /bin/bash -c "$(curl -fsSL raw.githubusercontent.com/Homebrew/install/..)"
3- Once Homebrew for M1 ARM is installed use this Homebrew command to install packages:
arch -x86_64 brew install