What is HomeBrew
The missing package manager for macOS (or Linux)
HomeBrew is or commonly called Brew is an open-source package manger that enables easy managment of Apps and software all from the CLI.
Why use HomeBrew
Software and Package Management
Homebrew centralized and makes the management of packages and apps faster and more straight forward. Software can be installed directly from the CLI rather than going to a download page.
Management of Multiple Versions
HomeBrew simplifies handling multiple versions of languages such as Node and Python.
Bulk Management With .Brewfile
or .brewfile
Backup Current Packages and Casks
brew bundle dump
Create a Brewfile
with a list of all current packages. To install packages from the Brewfile
run brew bundle
brew bundle --file=~<path>/Brewfile
CheatSheet
Install
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
Get info on a given formula
- version
- description
brew info wget
List currently installed packages
brew list
Search for package
brew search <package-name>
Install package or cask
brew install <package-name>
Install cask
brew install. --cask <cask-name>
uninstall package
brew uninstall <package-name>
uninstall
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/uninstall.sh)"