Homebrew is a free and open-source software package management system that simplifies the installation of software on Apple's macOS operating system.
Homebrew has been recommended for its ease of use as well as its integration into the command line.
Homebrew is written in the Ruby programming language and targets the version of Ruby that comes installed with the macOS operating system. It is by default installed into /usr/local and consists of a git repository, allowing the user to update Homebrew by pulling an updated repository from GitHub.
Step 1: Type below command to install Homebrew
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
Step 2: Type below command to update Homebrew
$ brew update