Homebrew

Install Homebrew

$ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Check your system for potential problems

$ brew doctor

Fetch the newest version of Homebrew

$ brew update

List all installed formulae

$ brew list

Install formulae

$ brew install [package]