Homebrew

The missing package manager for macOS

Homebrew is a utility which manages software packages on MacOS. It main use is to install software directly from the command line interface.

Installation

Homebrew requires Command Line Tools (CLT) for Xcode to be installed on your machine before running the install script:

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

Usage

Homebrew packages are called formulae: https://formulae.brew.sh/formula/

Install a package

$ brew install formula
# for example: brew install wget

Installing a package will automatically installed its required dependencies.

Under the hood, formula files are installed in /usr/local/Cellar and then symlinked to /usr/local.

More info about advanced usage can be found on https://docs.brew.sh/.

Last updated