RedHat CentOS Fedora发行版有 yum 可以很方便的安装软件包。
Ubuntu 有 apt 包管理器。
那么Mac OS X有没有包管理器呢? 答案当然是肯定的(而且不止一个),他就叫做homebrew。
官网http://brew.sh/ (域名很酷)
安装homebrew 只要一个ruby命令:
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
brew用法如同 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
可以安装我们需要的软件包了。
时间: 2024-11-08 20:26:01