Homebrew

search package

brew search <package>

install package

brew install <package>

update

brew update --force \
&& brew upgrade --greedy \
&& brew cleanup \
&& brew autoremove

list installed packages

brew list

show dependency tree of package

brew deps -t <package>

export package and cask name to reproduce environment

brew leaves > brew_leaves.txt
brew list --cask > brew_list_cask.txt

display information about package

brew info <package>

clean up junk

brew cleanup && brew autoremove

no stop-the-world auto update

export HOMEBREW_NO_AUTO_UPDATE=1