Homebrew是用来在mac上搜寻、下载一些常用套件的工具。与它类似的工具有MacPorts、Fink等。
—————————-安装—————————–
Mac电脑上自带ruby套件,而Homebrew的安装也是so easy,在终端输入一行ruby命令:
ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
输入命令后,敲击Enter,系统会自动下载、安装Homebrew。
—————————使用—————————–
Homebrew安装成功后,使用以下常用命令来进行操作:
brew search 搜索套件
brew info 查询套件信息
brew install 安装套件
brew list 通过brew进行安装的套件
brew update 更新Homebrew自己
brew help 简易帮助文档
man brew 详细的brew文档
例如,输入命令 brew install node
即可安装node
ImPM:Desktop appleofuestc$ brew install node
==> Downloading https://homebrew.bintray.com/bottles/node-0.12.7.yosemite.bottle.tar.gz
################################################################## 100.0%
==> Pouring node-0.12.7.yosemite.bottle.tar.gz
==> Caveats
Bash completion has been installed to:
/usr/local/etc/bash_completion.d
==> Summary