RedHat CentOS Fedora Release has yum to easily install packages.
Ubuntu has apt Package Manager.
So does Mac OS X have a package manager? The answer is certainly yes (and more than one), he is called homebrew.
Official website http://brew.sh/(the domain is cool)
Install homebrew as long as a ruby command:
Ruby-e "$ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/install)"
Brew usage is just like apt
Example usage:
brew [info | home | options ] [FORMULA...]
brew install FORMULA...
brew uninstall FORMULA...
brew search [foo]
brew list [FORMULA...]
brew update
brew upgrade [FORMULA...]
brew pin/unpin [FORMULA...]
Troubleshooting:
brew doctor
brew install -vd FORMULA
brew [--env | config]
Brewing:
brew create [URL [--no-fetch]]
brew edit [FORMULA...]
open https://github.com/Homebrew/homebrew/blob/master/share/doc/homebrew/Formula-Cookbook.md
Further help:
man brew
brew home
We can install the software packages we need.
This article is from the "Professor" blog, please be sure to keep this source http://professor.blog.51cto.com/996189/1622697
Mac OS X Package Manager –homebrew