brew
The Missing Package Manager for macOS
Essential Commands
-
General help:
brew --help -
Search for a package:
brew search <package> -
Get info about a package:
brew info <package> -
Install a package (formula or cask):
brew install [--no-quarantine] [--cask] <package>-
I normally don’t use the optional
--caskflag, brew is clever enough to know which I want most of the time; and prompts me for which when ambiguous. -
--no-quarantineensures you don’t get the security confirmation dialog on opening a cask for first time. -
formularefers to a cli app or lib whilecaskrefers to a full “gui” application
-
-
Remove a package:
brew uninstall <package> -
Update/Upgrade all packages:
brew update && brew upgrade [--greedy]--greedyflag is for those apps that have auto-update enabled. I use it always, instead of upgrading individual app.
-
Cleanup everything:
brew autoremove && brew cleanup [--prune=all] -
List of all formulae explicitly installed (without deps):
brew leaves