Linux system has a common problem of egg pain, software package depends on the current mainstream of the two major releases have their own solution, Red hat has yum, Ubuntu has apt-get.
There are no similar things in Mac OS, but there is a third-party library support:Homebrew. Homebrew Short Brew, is Mac OSX software package management tool, can be conveniently installed in the Mac software or uninstall software, you can say that homebrew is the Mac Apt-get, yum artifact.
Homebrew Installation
1, first to install Xcode, in the AppStore by searching for the keyword Xcode to find software and installation, the current version of 7.3.1 about 3.8G.
2. Execute the following command line in the terminal
Ruby-e "$ (curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/install)"
Execution of this command sometimes returns a 400 error, estimated to be wall, but after a few minutes retry and OK again.
Homebrew use
Search Software: Brew search software name, such as Brew search wget
Install software: Brew install software name, such as Brew install wget
Uninstall software: Brew remove software name, such as brew remove wget
More of it? Go to the official website and dig it http://brew.sh/index_zh-cn.html
" Software Installation directory "
Homebrew will install the kit into a standalone directory (the total directory is /usr/local/cellar), so you don't have to worry about where the software is installed and soft-link the file to /usr/local/bin,如:
$ pwd/usr/local/cellar$ lltotal 0drwxr-xr-x 8 jianbao admin 272 5 00:12. /drwxrwxr-x Admin 782 5 25 00:30.. /drwxr-xr-x 3 Jianbao admin 102 5 16:59 mcrypt/drwxr-xr-x 3 jianbao admin 102 5 16:59 mhash/drwxr-xr-x 3 jianbao admin 102 5 00:38 openssl/drwxr-xr-x 3 Jianbao Admin 102 5 00:09 readline/drwxr-xr-x 3 jianbao admin 102 5 00:09 sqlite/ Drwxr-xr-x 3 Jianbao admin 102 5 00:12 subversion/
Mac Pro installs Homebrew package management tools