Homebrew: list available versions with new formula@version format

Phlippie Bosman picture Phlippie Bosman · Apr 21, 2017 · Viewed 84k times · Source

Homebrew recently deprecated homebrew/versions in favour of making versions available on homebrew/core via the new formula@version format. For example (as per this answer), you can do brew install [email protected].

Of course, this doesn't work for arbitrary versions. For instance, install [email protected] turns up "Error: No formulae found in taps".

Under the old method, I could run brew versions <formula> to see available versions. How do I list available versions now?

Answer

Amelio Vazquez-Reina picture Amelio Vazquez-Reina · May 4, 2017

You can search versions using brew search.

For example:

$ brew search postgresql
postgresql ✔      [email protected]     [email protected]