Homebrew is the missing package manager for Macs and OS X. With Homebrew you can easily install apps (mostly command line apps) that can offer additional functionality that  our Apple computers are missing. There are some other package managers for Macs but since Homebrew is the most popular and my favourite one I am going to show how you can install it.

Requirements for Installing Homebrew on Mac OS

A Mac running Mac OS X 10.10 or later, though earlier versions are sort of supported

  • Basic knowledge of the command line and using bash or zsh

The easiest way to install Homebrew is by using the official command as shown in the documentation which is using ruby and curl.

Steps to install Homebrew:

Open terminal on your mac. You can go to spotlight and type terminal to find it easily (alternative you can find it on /Applications/Utilities/).

  1. Enter the command bellow.
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

3. Hit Return and the script will run. It will output to your terminal a log of what is going to install. Hit Return to continue or any other key to abort.

4. It might ask for sudo privileges. If this happens you will have to type your admin password and hit Return again.

Notes: Command line tools (Apple's XCode) will be installed after this guide.

The installation will look like as the image below.

Installation of Homebrew through command line

When the installation finishes successfully it will look  as the image below.

Homebrew installed successfully

By default Homebrew is sending anonymous data and analytics. You can find additional information here. You can choose to opt-out by running the command.

brew analytics off

Installing Software through Homebrew on Mac

Now since you have Homebrew on your machine you can do brew help to see what commands are available. To install a package you can do brew install wget which will install wget on your machine.

How to Remove Homebrew

Simply run (on your terminal) the command below.

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

Enjoy Homebrew and don't forget to subscribe. We are going to show the best packages from Homebrew and many more tips and tricks to use Homebrew effectively in later posts.