Homebrew is a package manager for command line tools on macOS. It can be installed by issuing the following command:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Packages can be installed with brew install <packagename>
and updated with brew update
.