Homebrew

Overview #

Homebrew is a package maneger for macOS.

Install #

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

Command #

Show help.

brew help

Update Homebrew itself.

brew update

Update packages.

brew upgrade

Install a package.

brew install <package name>

e.g.

brew install wget

Search a package.

brew search <package name>
brew search /regex/

List all installed packages.

brew list

List all installed packages with parent directories

brew list -v

Uninstall an package.

brew uninstall <package name>

List installed packages that have an updated version available.

brew outdated

Remove outdated packages.

brew cleanup

Confirm outdated packages before removing.

brew cleanup --dry-run