OS X 或缺的软件包管理器,使用 Ruby 语言实现。官网:http://brew.sh/index_zh-cn.html


在 OS X 10.9.2,Xcode 5.1 下安装 Brew 0.9.5 的日志:

$ ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go/install)"
==> This script will install:
==> The following directories will be made group writable:
==> The following directories will have their group set to admin:

Press RETURN to continue or any other key to abort
==> /usr/bin/sudo /bin/chmod g+rwx /usr/local/. /usr/local/include /usr/local/lib /usr/local/share /usr/local/share/locale
==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local/. /usr/local/include /usr/local/lib /usr/local/share /usr/local/share/locale
==> /usr/bin/sudo /bin/mkdir /Library/Caches/Homebrew
==> /usr/bin/sudo /bin/chmod g+rwx /Library/Caches/Homebrew
==> Installing the Command Line Tools (expect a GUI popup):
==> /usr/bin/sudo /usr/bin/xcode-select --install
xcode-select: note: install requested for command line developer tools
Press any key when the installation has completed.
==> Downloading and installing Homebrew...
remote: Counting objects: 156977, done.
remote: Compressing objects: 100% (44923/44923), done.
remote: Total 156977 (delta 110948), reused 156977 (delta 110948)
Receiving objects: 100% (156977/156977), 29.38 MiB | 368.00 KiB/s, done.
Resolving deltas: 100% (110948/110948), done.
From https://github.com/Homebrew/homebrew
 * [new branch]      master     -> origin/master
HEAD is now at 6a3b2d2 brew-unpack: remove obsoleted bottle workaround
==> Installation successful!
You should run `brew doctor' *before* you install anything.
Now type: brew help