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 |
This comment has been minimized.
This comment has been minimized.
great! Thanks! |
This comment has been minimized.
This comment has been minimized.
awesome!! thank you!! |
This comment has been minimized.
This comment has been minimized.
Perfect, thanks. |
This comment has been minimized.
This comment has been minimized.
That' was perfect! The step cd |
This comment has been minimized.
This comment has been minimized.
Very helpful, thank you! |
This comment has been minimized.
This comment has been minimized.
Very useful for downgrading svn! What does the "brew switch" command do? |
This comment has been minimized.
This comment has been minimized.
I upgraded tmux from 1.6 to 1.8 and things suddenly stop to work, so I did not need to install it again since it was already installed , so to downgrade : brew switch tmux 1.6 Thank you for the gist ! |
This comment has been minimized.
This comment has been minimized.
|
This comment has been minimized.
This comment has been minimized.
when i brew update |
This comment has been minimized.
This comment has been minimized.
Dude nice! I had 404 from all old versions of SVN but was able to manually drop in 1.7.11 into the svn folder and homebrew picked it up. |
This comment has been minimized.
This comment has been minimized.
|
This comment has been minimized.
This comment has been minimized.
I created a function version https://gist.github.com/rainchen/6363948 |
This comment has been minimized.
This comment has been minimized.
Works perfectly! Thx! |
This comment has been minimized.
This comment has been minimized.
When trying to install subversion 1.7.x, I got "Error: No available formula for serf". The workaround was:
as mentioned here. To switch back and forth between the two, you can use |
This comment has been minimized.
This comment has been minimized.
There is no |
This comment has been minimized.
This comment has been minimized.
The |
This comment has been minimized.
awesome, thanks!