Install Homebrew on MacOS

Homebrew is a third-party package manager that lets you install apps and services using the command line on macOS. This saves time and makes it easier to manage third-party software.

In simple words, Homebrew completes MacOS if you are a Linux user you know what I am talking about and you would love it.

All you need to know is how to use the Terminal and everything else is explained in this article.


Open the Terminal and run the commands below.

In order to get Homebrew working we need to install Xcode libraries on the Mac.

xcode-select --install
Code language: Bash (bash)

Once the above command is done executing, we can get Homebrew by running the command shown below.

/bin/bash -c "$(curl -fsSL"Code language: JavaScript (javascript)

Now we can install packages using Homebrew, for this example we will install htop, htop is an activity/system resource monitor that runs inside a Terminal window.

brew install htop

Once the command above has completed its execution. You can run.



sudo htop

That’s it, folks, now we have Homebrew installed on our Mac.