How to Install Homebrew on Mac

Tyler Tyler (285)
Total time: 1 minute 

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.

Posted in these interests:

mac
PRIMARY
81 guides
code
68 guides

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

Type the following:

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"

and press the return key.

To update Homebrew, run:

brew update

The update command updates Homebrew itself and fetches the newest versions of all packages (but does not automatically update the packages).

To upgrade local packages, run:

brew upgrade

The upgrade command is used to upgrade outdated (and unpinned) packages. By default, when you run brew upgrade Homebrew will first run an update, which fetches the latest versions of your installed packages. Then upgrade will actually perform the version upgrade.