Created
January 12, 2015 14:52
-
-
Save jmfayard/d948f9b4a0c60f7fb8e2 to your computer and use it in GitHub Desktop.
brew, install an older version
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
# Say you want to install spring-roo v1.2.4 | |
# $ brew install spring-roo | |
# would install version 1.3.0 | |
# fortunately, brew is based on git | |
$ cd /usr/local/Library/Formula/ | |
$ head spring-roo.rb | |
# this is the formula for the current version | |
$ git log --abbrev-commit --pretty=oneline spring-roo.rb | |
20a8cac spring-roo 1.3.0 | |
5c1603d Spring Roo 1.2.5 | |
27a97a9 Spring Roo 1.2.4 | |
4c99568 spring-roo 1.2.3 | |
... | |
# checkout the old version | |
$ git checkout 27a97a9 spring-roo.rb | |
$ head spring-roo.rb | |
# this is what we needed | |
$ brew install spring-roo | |
# We win | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
a more extensive answer
http://stackoverflow.com/questions/3987683/homebrew-install-specific-version-of-formula