Homebrew
Homebrew is the missing package manager for the Mac OS. It’s missing because the MacOS doesn’t have one. Homebrew is the MacOS equivalent of apt-get or aptitude in Ubuntu Linux. With Homebrew installed on your MacOS, you can easily install and uninstall programs, packages, and utilities via the command line. For example, to install the wget, apache, git and ffmpeg, you can run the following commands from the Terminal.
<pre lang="bash">
$ brew install wget
$ brew install apache
$ brew install git
$ brew install ffmpeg
If you don’t have Homebrew installed, run the following command from the Terminal.
<pre lang="bash">
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
If for some unexplained reason you’re having problems with Homebrew, you can uninstall and reinstall it.
<pre lang="bash">
$ rm -rf /usr/local/Cellar /usr/local/.git && brew cleanup
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"