Tools and Configs

Installing Homebrew for Mac M1

Homebrew installs the stuff you need that Apple (or your Linux system) didn’t. Homebrew installs packages to their own directory and then symlinks their files into /usr/local (on macOS Intel).

Installing Homebrew

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

Set Path for homebrew

When your installation completes you should see the Next steps at the end of the command output. As for me, it was:

Next steps for HomeBrew installation.

Copy the commands displayed and run them on your terminal to add Homebrew to your path. For me commands to add it in the path:


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

Now Homebrew installation is complete, and you should be able to use Homebrew on your terminal. To test homebrew, try brew –help on your terminal and it should display help options as output.

Homebrew installation on Mac M1

If your command results in an error, then it means that your installation was not successful, and you need to check every step that what went wrong.

You can check the official website https://brew.sh/ for more details.

Leave a Reply

Your email address will not be published. Required fields are marked *