Installing Homebrew on Mac M1

Anand Bhaskaran
Feb 15, 2022

I just got a new Mac M1 and Homebrew is one of the key tool for managing my packages. If you are new to mac world, this tool is very similar to apt-get in linux.

Homebrew on Mac M1

Here is the step by step on how to install homebrew:

  1. Open ZSH terminal
  2. Run the following command:
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

This command will get the latest installation script form Homebrew’s Github and installs it. This script will automatically install Xcode command line tools if you don’t have it.

3. Run the following commands to add brew to your path

echo 'eval "$(/opt/homebrew/bin/brew shellenv)"' >> ~/.zprofileeval "$(/opt/homebrew/bin/brew shellenv)"

4. Testing

brew help

As you can see this would already work and you are ready to use Brew! Enjoy your new Mac M1.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

Anand Bhaskaran
Anand Bhaskaran

Written by Anand Bhaskaran

I am a software engineer and a investment enthusiast

No responses yet

Write a response