您的位置:首页 > 其它

homebrew安装指定版本的软件

2013-10-25 11:09 288 查看
转载自:


brew install specific version of formula


Lets say we want to install (or downgrade to) node 0.6.19 instead of the newest version.

If you already have node, uninstall current version with:
$ brew uninstall node


Then search for available versions of the formula:
$ brew versions node
0.8.3    git checkout 31f8d9f Library/Formula/node.rb
0.8.2    git checkout 50ae8e4 Library/Formula/node.rb
0.8.1    git checkout 9ff0a1d Library/Formula/node.rb
0.8.0    git checkout 01f8006 Library/Formula/node.rb
0.6.19   git checkout 83988e4 Library/Formula/node.rb


Now checkout the desired version. Assuming you're at /usr/local/:
$ git checkout 83988e4 Library/Formula/node.rb


Finally install node:
$ brew install node


Done!
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: