Install a Specific Version of a Tool on OS X With Homebrew
Sometimes you need to install an older version of a package with Homebrew. Here’s how I installed version 1.7.10 of Subversion.
I couldn’t connect to my company’s repository using the latest 1.8.0 - svn failed with the message
svn: E120171: Error running context: An error occurred during SSL communication. A quick DuckDuckGo (gosh that’s a mouthful) took me to some mail group where Subversion developers bicker among themselves, but no solution. So I went down to a known stabler version.
All the information here comes from this SO answer.
Uninstall the previous version
Make sure you don’t have an old version of the package installed:
In the case of svn, I also needed to remove the version that comes by default with OS X, as Homebrew is not able to unlink the two.
Find out how old versions are called
1 2 3
The above tells you what svn packages are available. Note that searching for
svn instead of
subversion returns the current version only for some reason.
So that tells me that svn 1.7.something is called
subversion17 in Homebrew world, and it can be found into
Install old versions
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22
Before you install a version you need to enable the whole “getting old versions” thing - you do that with the
tap command. Afterwards, it’s just a matter of installing the package I found earlier.