Brew versions unknown command mavericks

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

Try this first:

brew tap homebrew/boneyard

as versions option is obsolete.

Tags:

Zsh

Homebrew