Brew Cheatsheet: Brew Help Brew Search, Install, Remove Brew Repositories

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Brew Cheatsheet

The missing package manager for macOS.

Brew Help Brew Repositories Brew Search, Install, Remove


Display the version of Homebrew. List all the current tapped repositories (taps) List all the installed formulae.
$ brew --version $ brew tap $ brew list
Print Help Information Tap a formula repository from Github using https Display all locally available formulae for brewing.
$ brew help for tap https://github.com/user/homebrew-repo $ brew search
$ brew tap <user/repo>
Print Help Info for a brew command Perform a substring search of formulae names for
$ brew help <command> Tap a formula repository from the specified URL brewing.
$ brew tap <user/repo> <URL> $ brew search <text>
Check system for potential problems.
$ brew doctor Remove the given tap from the repository Display information about the formula.
$ brew untap <user/repo> $ brew info <formula>
Brew Updates Install the formula.
Brew Cask $ brew install <formula>
Fetch latest version of homebrew and formula
$ brew update Tap the Cask repository from Github. Uninstall the formula.
$ brew tap homebrew/cask $ brew uninstall <formula>
Show formulae with an updated version available
$ brew outdated List all the installed casks .
$ brew cask list Brew Cleanup
Upgrade all outdated and unpinned brews
$ brew upgrade Search all known casks based on the substring Remove older versions of installed formulae.
text. $ brew cleanup
Upgrade only the specified brew
$ brew search <text>
$ brew upgrade <formula> Remove older versions of specified formula.
Install the given cask. $ brew cleanup <formula>
Prevent the specified formulae from being
$ brew cask install <cask>
upgraded Display all formula that will be removed (dry run)
$ brew pin <formula> Reinstalls the given Cask $ brew cleanup -n
$ brew cask reinstall <cask>
Allow the specified formulae to be upgraded.
$ brew unpin <formula> Uninstall the given cask.
$ brew cask uninstall <cask>

Version 1.0 https://www.code2bits.com

You might also like