How to Install HomeBrew on Mac

In this tutorial I will show you how to install HomeBrew on Mac. Here’s a link to their project on GitHub.

What Packages Are Available?

  1. Type brew search for a list.
  2. Or visit braumeister.org to browse packages online.
  3. Or use brew search --desc to browse packages from the command line.

Installing HomeBrew

Execute the following command to install HomeBrew on Mac.

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

The screenshot below shows the above command getting executed.
Installing HomeBrew on Mac

It will display “You should run brew doctor before you install anything.” as last sentence after installing the home brew.

Now execute

brew doctor

Next run the brew update command to check for updates.

brew update

Note: Run the above commands without logging as the root user. If you log in as root then the installation won’t occur and a warning will be displayed to not use the commands as root user.

This content has been helpful to you?

Thanks for contributing!

Yes No