1. 檢視所有的版本
2. 依照版本安裝更新程式
3. 重新建立連結
brew update
brew versions FORMULA
#move to Homebrew's install path
cd `brew --prefix`
git checkout HASH Library/Formula/FORMULA.rb
brew unlink FORMULA(option)
brew install FORMULA
brew switch FORMULA VERSION
git checkout -- Library/Formula/FORMULA.rb(??)
Ex.
$brew update
$brew versions tomcat
7.0.32 git checkout 55cfbdf /usr/local/Library/Formula/tomcat.rb
7.0.30 git checkout ec5e2ca /usr/local/Library/Formula/tomcat.rb
7.0.29 git checkout 1683f9e /usr/local/Library/Formula/tomcat.rb
7.0.28 git checkout 3293f97 /usr/local/Library/Formula/tomcat.rb
7.0.27 git checkout 82498e5 /usr/local/Library/Formula/tomcat.rb
7.0.26 git checkout ee016a5 /usr/local/Library/Formula/tomcat.rb
7.0.25 git checkout 48c1c63 /usr/local/Library/Formula/tomcat.rb
7.0.23 git checkout 09e1800 /usr/local/Library/Formula/tomcat.rb
7.0.21 git checkout 22d9df7 /usr/local/Library/Formula/tomcat.rb
7.0.20 git checkout f857eca /usr/local/Library/Formula/tomcat.rb
7.0.19 git checkout 548514e /usr/local/Library/Formula/tomcat.rb
7.0.16 git checkout 14e4db3 /usr/local/Library/Formula/tomcat.rb
7.0.14 git checkout bdd4756 /usr/local/Library/Formula/tomcat.rb
7.0.6 git checkout 0476235 /usr/local/Library/Formula/tomcat.rb
6.0.26 git checkout 9e18876 /usr/local/Library/Formula/tomcat.rb
2.
cd `brew --prefix`
沒有留言:
張貼留言