Skip to content

Instantly share code, notes, and snippets.

@yannbertrand
Last active December 11, 2021 13:40
Show Gist options
  • Save yannbertrand/7b50d9716c4974b70ac8d30c59c597ae to your computer and use it in GitHub Desktop.
Save yannbertrand/7b50d9716c4974b70ac8d30c59c597ae to your computer and use it in GitHub Desktop.
homebrew cheatsheet

Current version: 3.3.7

Install homebrew

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

BREW

Install package

brew install [PACKAGE]

Search

brew search [PACKAGE]

Details

brew info [PACKAGE]

List directly installed packages

brew leaves

Remove package and unused dependencies

brew tap beeftornado/rmtree
brew rmtree [PACKAGE]

Upgrade packages

brew upgrade

Update

brew update

CASK

Search

brew search [PACKAGE]

Details

brew cask info [PACKAGE]

Install app

brew install --cask [APPLICATION]

List apps

brew list --cask

Remove app and associated files (preferences...)

brew uninstall --cask [APPLICATION] --zap

Upgrade apps

brew upgrade --casks

Update

brew update --cask
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment