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.

1

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

Type the following:

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

and press the return key.

2

To update Homebrew, run:

brew update
3

To upgrade local packages, run:

brew upgrade