Installing Homebrew on M1 Mac


First run the following command to install homebrew

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

On M1 Macs homebrew will install in the following path

/opt/homebrew/bin

By default it's not avainable in the Path so you need run following commands to add to path.

echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> /Users/experimental/.zprofile
eval "$(/opt/homebrew/bin/brew shellenv)"

That's it, now you are goot to go and use homebrew