Mac OS X is a UNIX-based operating system that can install most of the software developed for Unix/linux. However, if only for the purpose of use, the manual compilation of each software is not very convenient, also not conducive to the management of installed software, so there is similar to the Linux apt, yum and other similar software package management system, among which the most famous are macports, Fink, homebrew and so on.
Homebrew uses as many libraries as possible from the system, making the package compile time much shorter, and the management of the package is much clearer and more flexible due to the fact that it is almost impossible to create redundancy. Another feature of homebrew is the use of Ruby to define the package installation configuration (called formula), which is very simple to customize.
In fact, frankly speaking, homebrew is a space-saving, convenient, flexible package management tools.
Installation method, just type the command at the terminal. If the prompt address has expired, please check the official website for the latest address.
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
homebrew安装完成以后,安装软件只需要一条命令,如安装node的命令为 brew install node ,但是注意已经存在的安装会报错。
Homebrew Introduction and Mac installation method