How to Install Homebrew on Mac
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.
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:
/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.
Updating your MacOS can be extremely time-consuming. While it's not necessarily difficult, not every Mac user has the time to keep their Mac up-to-date.