Homebrew Cheatsheet

Table of Contents

The missing package manager for macOS (or Linux).

Commands

CommandDescription
brew install gitInstall a package
brew upgrade gitUpgrade a package
brew unlink gitUnlink
brew link gitLink
brew switch git 2.5.0Change versions
brew list --versions gitSee what versions you have

More package commands

CommandDescription
brew info gitList versions, caveats, etc
brew cleanup gitRemove old versions
brew edit gitEdit this formula
brew cat gitPrint this formula
brew home gitOpen homepage

Global commands

CommandDescription
brew updateUpdate brew and cask
brew listList installed
brew outdatedWhat’s due for upgrades?
brew doctorCheck your system for potential problems

Brew Cask commands

CommandDescription
brew cask install firefoxInstall the Firefox browser
brew cask listList installed applications

Cask commands are used for interacting with graphical applications.

Also see