What is Homebrew

  • The missing package manager for macOS.
  • Homebrew made things easy to install packages/libraries(like maven, wget etc) in macOS in a single command.

How to install Homebrew

Paste the following ruby snippet in the mac terminal

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

Following will show the version and git revision of homebrew.

brew -v

How to install a new package (say Maven)

  • Install maven using following command in terminal
brew install maven

How to Uninstall Homebrew

Paste the following ruby snippet in the mac terminal

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