Using the case of installing Python 2.7.9 instead of the latest 2.7.10, previously I could simply use brew versions python
and see all of the versions of Python formulae by their commit SHA in brew, and then check them out to install a specific version. This is an example of brew versions python
output:
$ brew versions python
Warning: brew-versions is unsupported and will be removed soon.
You should use the homebrew-versions tap instead:
https://github.com/Homebrew/homebrew-versions
2.7.9 git checkout 667284f /usr/local/Library/Formula/python.rb
2.7.8 git checkout f26ca5c /usr/local/Library/Formula/python.rb
2.7.7 git checkout d48206e /usr/local/Library/Formula/python.rb
2.7.6 git checkout 3c64184 /usr/local/Library/Formula/python.rb
2.7.5 git checkout a04b443 /usr/local/Library/Formula/python.rb
2.7.3 git checkout 865f763 /usr/local/Library/Formula/python.rb
2.7.4 git checkout 280581d /usr/local/Library/Formula/python.rb
2.7.2 git checkout 97c6869 /usr/local/Library/Formula/python.rb
2.7.1 git checkout 83ed494 /usr/local/Library/Formula/python.rb
2.7 git checkout 1bf3552 /usr/local/Library/Formula/python.rb
2.6.5 git checkout acd49f7 /usr/local/Library/Formula/python.rb
2.6.4 git checkout 843bff9 /usr/local/Library/Formula/python.rb
2.6.3 git checkout 5c6cc64 /usr/local/Library/Formula/python.rb
But the latest version of brew has already removed versions
support, and I don't understand how to install a previous Python using https://github.com/Homebrew/homebrew-versions. How do you actually install Python 2.7.9 instead of the newer 2.7.10?
I would like to know how to use homebrew-versions
instead of the more trivial way brew versions
.
With brew versions
I could easily see all versions from that specific formulae (have a look at the above Python versions spit out by brew versions python
). From the doc, there is no clear way to achieve the same result as brew versions python
does.