Install Homebrew on M3 Mac (Short Guide)
TL;DR
New M3 Mac, some hiccups getting Homebrew on. What finally worked: xcode-select --install, the install.sh script, then /opt/homebrew/bin on PATH in .zshrc.
So, I wanted to install Homebrew on my new M3 Mac. After some hiccups and troubleshooting, these are the final steps that worked:
Step 1: Install Command Line Tools:
Open Terminal, and type:
xcode-select --install
Follow the prompts to install the required tools.
Step 2: Install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Step 3: Add Homebrew to PATH:
Open the ~/.zshrc file:
nano ~/.zshrc
Add this line:
export PATH="/opt/homebrew/bin:$PATH"
Save and reload:
source ~/.zshrc
Step 4: Verify Installation:
brew --version
Done! 🎉 Homebrew is ready to use.
The summary at the top was generated by AI.