macOS
Homebrew — package manager for macOS
Homebrew on macOS: install and remove formulae and casks, update and upgrade, pin versions, and clean up old downloads.
Install / remove
brew install pkg — install
brew uninstall pkg — remove
brew list — what's installed
brew info pkg — package info
Update
brew update — refresh package index
brew upgrade — upgrade all installed
brew upgrade pkg — upgrade one
brew outdated — list outdated
Casks (apps)
brew install --cask app
brew uninstall --cask app
brew list --cask
Maintenance
brew cleanup — remove old versions
brew doctor — health check