While brew has an accessible simple versioning mechanism, it's restricted to versions used by a large number of people. So for popular versions, it's easy:
brew search node # gives node@6, node@8, node@10
brew search postgresql #gives [email protected], [email protected], [email protected], postgresql@10
brew search python # gives python@2
And I can install one for instance with brew install python@2
.
But for less popular versions which got removed, let's say [email protected]
, then it's not obvious how to install them:
$
brew install [email protected]
Error: No available formula with the name "[email protected]"
==> Searching for a previously deleted formula (in the last month)...
Error: No previously deleted formula found.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
==> Searching taps on GitHub...
Error: No formulae found in taps.