Homebrew

Install some package, e.g., gcc

brew install gcc

Uninstall a package

brew uninstall gcc

Check package information

brew info gcc

Update package list (needs internet connection)

brew update

See outdated packages

brew outdated

Upgrade all outdated packages

brew upgrade

Upgrade a specific package

brew upgrade youtube-dl

Remove old versions of packages

brew cleanup

Check dependencies for PACKAGENAME

brew deps PACKAGENAME

Check which installed packages depend on PACKAGENAME

brew uses --installed PACKAGENAME

List packages which are not required any installed package

brew leaves