Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Brew versions unknown command mavericks

Tags:

I´m having problems with the brew versions command, I´m trying to run

brew versions grails Error: Unknown command: versions   which brew                               127 ↵ /usr/local/bin/brew  brew -v Homebrew 0.9.5 
like image 613
Ricardo Umpierrez Avatar asked Oct 07 '14 14:10

Ricardo Umpierrez


2 Answers

Try this first:

brew tap homebrew/boneyard 

as versions option is obsolete.

like image 155
Mark Setchell Avatar answered Oct 17 '22 00:10

Mark Setchell


UPDATE: they've started putting multiple versions in homebrew-core (see the message here), so now you'll see it by default:

$ brew update $ brew search grails grails                             [email protected] 

Info about the deprecated "homebrew/versions":

The versions command was obsoleted in favor of homebrew-versions, which is a separate tap with formulas pointing to specific versions of packages. You can add it with brew tap homebrew/versions and brew update, then you'll see specific versions from the tap like this:

$ brew search grails grails                        homebrew/versions/grails20    homebrew/versions/grails22 homebrew/versions/grails224   homebrew/versions/grails13    homebrew/versions/grails21 homebrew/versions/grails223   homebrew/versions/grails23 $ brew install homebrew/versions/grails223 

You can also look at the git commit log from the regular tap and pick a version that way:

$ brew log grails commit eeacedb303093999c60d5696e3385213021dc1eb Author: Christian-Manuel Butzke <[email protected]> Date:   Wed Jan 27 10:28:42 2016 +0900     grails 3.0.12     Closes #48501.     Signed-off-by: Martin Afanasjew <[email protected]>  commit bbdbbe29827d77e5f530d804a07e9985f74d8cbe Author: Xu Cheng <[email protected]> . . . $ cd $(brew --prefix) $ git checkout bbdbbe29827d77e5f530d804a07e9985f74d8cbe Library/Formula/grails.rb $ brew install grails 
like image 27
Mike Placentra Avatar answered Oct 16 '22 23:10

Mike Placentra