#cd /usr/local/Library/Formula
#git checkout 9332ca9 /usr/local/Library/Formula/erlang.rb
#brew install erlang
Basically the Formula directory is a git repo, therefore you can just checkout a branch which you would like to install and tada!
Easy.
Monday, February 13, 2012
Installing a certain version of software with homebrew
Homebrew is making our lives easier on MacOS, letting us to install software from source. One feature which makes it exceptional is the version handling.
Lets install the previous version of Erlang.
Subscribe to:
Post Comments (Atom)
git checkout [-p|--patch] [] [--] …
ReplyDeleteWhen or --patch are given, git checkout does not switch branches. It updates the named paths in the working tree from the index file or from a named (most often a commit). In this case, the -b and --track options are meaningless and giving either of them results in an error. The argument can be used to specify a specific tree-ish (i.e. commit, tag or tree) to update the index for the given paths before updating the working tree.