Homebrew

The missing package manager for macOS (or Linux).

Installation

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

Commands

formula is usually the name of the formula to install.

brew install <formula>
brew uninstall <formula>

Fetch the newest version of Homebrew and all formulae from GitHub using git(1) and perform any necessary migrations.

brew update

Upgrade outdated casks and outdated, unpinned formulae using the same options they were originally installed with, plus any appended brew formula options.

brew upgrade

Remove stale lock files and outdated downloads for all formulae and casks, and remove old versions of installed formulae.

brew cleanup

Check your system for potential problems.

brew doctor

Command Reference

Troubleshooting

Permission denied

sudo chown -R $(whoami) $(brew --prefix)/*