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
To update Homebrew, run:
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:
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.