Prerequisites
You will need a macOS computer with administrative access that is connected to the internet.
Step 1 — Opening Terminal
The macOS Terminal is an application you can use to access the command line interface. Like any other application, you can find it by going into Finder, navigating to the Applications folder, and then into the Utilities folder. From here, double-click the Terminal like any other application to open it up. Alternatively, you can use Spotlight by holding down the command and spacebar keys to find Terminal by typing it out in the box that appears.
Step 2 — Installing Xcode
Xcode is an integrated development environment (IDE) that is comprised of software development tools for macOS. You may have Xcode installed already. To check, in your Terminal window, type:
Copy
If you receive the following output, then Xcode is installed:
Output
/Library/Developer/CommandLineTools
Step 3 — Installing and Setting Up Homebrew
While the OS X Terminal has a lot of the functionality of Linux Terminals and other Unix systems, it does not ship with a good package manager. A package manager is a collection of software tools that work to automate installation processes that include initial software installation, upgrading and configuring of software, and removing software as needed. They keep installations in a central location and can maintain all software packages on the system in formats that are commonly used. Homebrew provides OS X with a free and open-source software package managing system that simplifies the installation of software on OS X.
To install Homebrew, type this into your Terminal window: