Skip to content

Instantly share code, notes, and snippets.

@jmfayard
Created January 12, 2015 14:52
Show Gist options
  • Save jmfayard/d948f9b4a0c60f7fb8e2 to your computer and use it in GitHub Desktop.
Save jmfayard/d948f9b4a0c60f7fb8e2 to your computer and use it in GitHub Desktop.
brew, install an older version
# 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
@jmfayard
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment