Install Brew on a M1 Mac
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofileeval "$(/opt/homebrew/bin/brew shellenv)"
Usage
- Run
uname -m
in the Terminal of your choice and verify it outputsarm64
- Run the command above
- If you have not installed the Xcode Command Line Tools, brew will automatically install them for you
- After the installation completes, run
brew doctor
- If the output of
brew doctor
isYour system is ready to brew.
, you are done - If
brew doctor
returns issues, resolve them according to the provided instructions - You may want to set up Homebrew’s shell-completion at this time
Resources
- If you are not using the M1 chip, use this snippet instead
- Homebrew Documentation
- Homebrew Documentation: Configuring Completions in zsh
Hey, I'm Andrew 👋
I'm a senior product engineer at Podia, co-host of Remote Ruby and Ruby for All, and co-editor of Ruby Radar. You can explore my writing, learn more about me, or subscribe to my RSS feed.