Small Sharp Software Tools

Harness the Combinatoric Power of Command-Line Tools and Utilities

Installing Homebrew

Tagged with Bash macOS

Published January 26, 2019

With Homebrew, you can install many command line tools, programming languages, and other software quickly. In this tutorial, you’ll install Homebrew on your mac.

Before you install Homebrew, install the XCode Command Line Develper Tools.

Open the Terminal app and execute the following command to start the installation process:

$ xcode-select --install

You’ll see a license dialog appear. Accept the license and let the installation process complete.

Once it does, you can install Homebrew. Copy and paste this command into your Terminal window:

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

This will install Homebrew so you can use it to install packages.

To test it out, use Homebrew to install the tree command which lets you visualize directory structures.

$ brew install tree

The command will download tree and install it on your Mac.

Now that Homebrew is installed, you can use it to install lots of other great tools and programming languages, including GNU versions of command line tools