Appendix C — The brew Utility (Mac OS)

Homebrew is a command-line utility which makes it easy to install programs on Mac OS.

Detection

Check to see if Homebrew is installed:

which brew

Installation

Install Homebrew if necessary:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

FYI: during the installation process you might also need to install “Xcode Developer Tools” (using the provided xcode-select command when prompted to do so).

Usage

List installed programs:

brew list

Installing programs:

brew install my_program # where my_program is the name of the program to be installed

Uninstalling programs:

brew uninstall my_program # where my_program is the name of the program to be installed