Homebrew installs the stuff you need that Apple didn’t. Its just like a package manager, but for the Mac. Its pretty easy to install brew on your OSx.
The easy way to install is in this website: http://brew.sh
You can install it by the following command in your terminal:
You will need xcode-tools as well. While installing, the script will ask you before installing the same. Once installed, you can update brew by issuing the following command:
Homebrew was originally created by Max Howell.
Brew help can be obtained from their wiki.
You can try your first command: