Install Homebrew on OS X

So what exactly is Homebrew? Homebrew is a package manager for OS X. Much like apt-get for Ubuntu and yum for CentOS. Need wget or curl for your Mac? Well it didn't come with those from the factory, so it's time to get Homebrew.

Before we install Homebrew we're going to need the Xcode Command Line Tools. If you already have this installed, skip the following.

Open up your terminal on your Mac and type the following command:

xcode-select --install

Agree to all of the Apple terms & conditions and hit install.

This may take a while to install ( Xcode stuff is notorious for long installation times. ) so you might want to go get a coffee, redbull, or watch one of your bootleg torrented TV shows.

Installing Homebrew

Once Xcode CLI Tools are installed you should be ready to install Homebrew. Installing Homebrew is as simple as opening your terminal and typing in the following:

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

All on one line.

Next you'll want to run:

brew doctor

To make sure Homebrew is running up to par.

To make sure everything is up to date, you'll want to run the following command in your terminal next:

brew update

It is best practice to run these two commands if you need a package and haven't used Homebrew in a while.

Now you're all ready to install tools and software packages with Homebrew! If you need any more documentation, there is plenty on the official Homebrew site.