Homebrew is a missing package manager for Mac OS X. Using Homebrew you can install packages which could be easily installed in Linux, but are not available in Mac OS X.
Homebrew installs software inside the
/usr/local subdirectory in Mac OS X. OS X doesn’t install anything there on its own; in fact,
/usr/local is reserved for user-installed stuff. Homebrew installs packages to their own directory and then symlinks their files into
/usr/local. It is available for Mac OS X 10.10 Yosemite, OS X 10.9 Mavericks and other older versions till OS X 10.6.
Installing Homebrew in Mac
Open your terminal and run the following command
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
Enter your Mac’s password when prompted.
To install any package using homebrew, run the following package
brew install package_name