What is HomeBrew

Homebrew is the missing package manager for macOS. You can use Homebrew to install command line packages on a Mac, provided someone has written a formulae, which is a simple Ruby script that walks through the process for installing all the little bits required for a piece of software.

Installing HomeBrew

bash /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Once the installation has finished, excute the following command for checking your HomeBrew version.

bash brew --version

How to install a package

bash brew install wget

Updating HomeBrew

New versions of Homebrew come out frequently, so make sure you update it before updating any of the other software components that you’ve installed using Homebrew.

bash brew update

Uninstalling HomeBrew

To uninstall Homebrew, execute the command below in a terminal prompt.

bash ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/uninstall)"