Ricardo Umpierrez
Ricardo Umpierrez

Reputation: 768

Brew versions unknown command mavericks

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

Upvotes: 25

Views: 23268

Answers (3)

Mike Placentra
Mike Placentra

Reputation: 885

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

Upvotes: 10

tyleraadams
tyleraadams

Reputation: 101

When I ran brew tap homebrew/boneyard and then brew versions node I got the following, which looks like the proper replacement:

You should use the homebrew-versions tap instead:
https://github.com/Homebrew/homebrew-versions

Cheers!

Upvotes: 7

Mark Setchell
Mark Setchell

Reputation: 207335

Try this first:

brew tap homebrew/boneyard

as versions option is obsolete.

Upvotes: 29

Related Questions