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
To upgrade local packages, run:
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.