BREW

Homebrew is a free and open-source software package management system for macOS

Install a formula

brew install FORMULA

Reinstall a formula or cask

brew reinstall FORMULA

Uninstall a formula

brew uninstall FORMULA

List installed formulae and casks

brew list

List explicitly installed formulae (not dependencies)

brew leaves

Display brief statistics of Homebrew installation or, if a formula or cask is provided, show a summary

brew info [FORMULA]

Search for a formula (with a name or a /regex/)

brew search FORMULA | /FORMULA/

Uninstall no longer needed dependencies

brew autoremove

Remove outdated downloads and versions for all formulae and casks

brew cleanup

Check system for potential problems

brew doctor

Print export statements. When run in a shell, add installation of Homebrew to your PATH, MANPATH, and INFOPATH. The variables HOMEBREW_PREFIX, HOMEBREW_CELLAR and HOMEBREW_REPOSITORY are also exported to avoid querying them multiple times

brew shellenv

Pin the specified formula, preventing it from being upgraded

brew pin FORMULA

Unpin formula, allowing it to be upgraded

brew unpin FORMULA

Fetch the newest version of Homebrew and all formulae from GitHub

brew update

Upgrade outdated casks and outdated, unpinned formulae

brew upgrade