Knowledge for the World

How to install Homebrew on macOS

Homebrew is a MacOS package manager built on ruby and git. Homebrew will help you easily install and manage a variety packages and applications. This guide will show you how to install Homebrew on your mac.


Open the Terminal app. Using Spotlight, hit cmd + space bar and search for Terminal.

Type the following:

/usr/bin/ruby -e "$(curl -fsSL"

and press the return key.


To update Homebrew, run:

brew update

To upgrade local packages, run:

brew upgrade