How to install apt-get or YUM on Mac OS X

If you want the equivalent of apt-get or yum on Mac OS X, you have two choices.

  1. Homebrew: http://brew.sh
  2. Macports: http://www.macports.org

You can use brew install PACKAGE_NAME or port install PACKAGE_NAME to install the package available.


You need to install either Homebrew or YUM. To install Homebrew enter the following command in terminal.

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

then use brew install Package_name


It is possible to use apt-get on OS X 10.9 like Deb based Linux using a third party software named Fink - How to Install apt-get on Mac OS X. However, unlike Homebrew and OS X Package Managers, Fink does not use /usr/local/ path to install software. It simply means, Fink is for a bit advanced users who can handle the software conflicts (for difference in version). Homebrew, to me is the best package manager...