Mac OS X 中安装 brew

来源:互联网 发布:软件咨询服务购买合同 编辑:程序博客网 时间:2024/06/05 19:26
先安装Git,打开一个shell


cd /usr/local
sudo mkdir homebrew
curl -L https://github.com/mxcl/homebrew/tarball/master | sudo tar xz --strip 1 -C homebrew
cd homebrew/bin
./brew -v
file brew
cat brew | more
sudo ./brew update
在".bash_profile"中更新路径配置
(如果~下没有文件".bash_profile" 请执行: touch '.bash_profile'
vim '.bash_profile'加入
export PATH=$PATH:/usr/local/homebrew/bin
之后可以直接执行brew(不用./brew)

使用brew安装其他软件包的测试
./brew install wget
./brew uninstall wget
可见brew是一个很有用的包管理工具。
0 0
原创粉丝点击