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 brewInstallation
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-selectcommand when prompted to do so).
Usage
List installed programs:
brew listInstalling programs:
brew install my_program # where my_program is the name of the program to be installedUninstalling programs:
brew uninstall my_program # where my_program is the name of the program to be installed