-
-
Save z0mt3c/3a65f7290a43d9d35d72 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
brew update | |
brew versions FORMULA | |
cd `brew --prefix` | |
git checkout HASH Library/Formula/FORMULA.rb # use output of "brew versions" | |
brew install FORMULA | |
brew switch FORMULA VERSION | |
git checkout -- Library/Formula/FORMULA.rb # reset formula | |
## Example: Using Subversion 1.6.17 | |
# | |
# $ brew versions subversion | |
# 1.7.3 git checkout f8bf2f3 /usr/local/Library/Formula/subversion.rb | |
# 1.7.2 git checkout d89bf83 /usr/local/Library/Formula/subversion.rb | |
# 1.6.17 git checkout 6e2d550 /usr/local/Library/Formula/subversion.rb | |
# 1.6.16 git checkout 83ed494 /usr/local/Library/Formula/subversion.rb | |
# 1.6.15 git checkout 809a18a /usr/local/Library/Formula/subversion.rb | |
# 1.6.13 git checkout 7871a99 /usr/local/Library/Formula/subversion.rb | |
# 1.6.12 git checkout c99b3ac /usr/local/Library/Formula/subversion.rb | |
# 1.6.6 git checkout 8774131 /usr/local/Library/Formula/subversion.rb | |
# 1.6.5 git checkout a82e823 /usr/local/Library/Formula/subversion.rb | |
# 1.6.3 git checkout 6b6d369 /usr/local/Library/Formula/subversion.rb | |
# $ cd `brew --prefix` | |
# $ git checkout 6e2d550 /usr/local/Library/Formula/subversion.rb | |
# $ brew install subversion | |
# $ brew switch subversion 1.6.17 | |
# $ git checkout -- Library/Formula/subversion.rb |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment