Homebrew is a command-line utility which makes it easy to install programs on Mac OS.
Check to see if Homebrew is installed:
which brew
Install Homebrew if necessary:
/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
List installed programs:
brew list
Installing programs:
brew install my_program # where my_program is the name of the program to be installed
Uninstalling programs:
brew uninstall my_program # where my_program is the name of the program to be installed