Homebrew

Here are some useful commands.

brew install gcc          -- Install some package, e.g., gcc
brew uninstall gcc        -- Uninstall a package
brew info gcc             -- Check package information
brew list                 -- List all installed packages
brew update               -- Update package list (needs internet connection)
brew outdated             -- See outdated packages
brew upgrade              -- Upgrade all outdated packages
brew upgrade gcc          -- Upgrade a specific package
brew cleanup              -- Remove old versions of packages
brew deps gcc             -- Check dependencies for gcc
brew uses --installed gcc -- Check which installed packages depend on gcc
brew leaves               -- List packages not required by any installed package