Migrating from Linux (Ubuntu, CentOS) to OS X (dev environment)
There’s a third-party package manager called Homebrew, which is in fairly common use in the Mac development community. It’s very similar to apt or yum on Linux systems, and will have a lot of the same packages.

The easiest way to find out if a package is available is to Google for “brew &lt;package name>” (as brew install is the installation command, not homebrew install), or to look through a list of Homebrew formulas like http://brewformulas.org.