Sunday, March 28, 2010

Install latest Version of Subversion on Ubuntu

I thought it would be as simple as "apt-get install subversion" to install an updated version of Subversion. But I was mislead. Using Ubuntu 8.04 (Hardy) only the ageing SVN version 1.4.6 was available in the official repository.

First try:
Adding Hardy's Backport-Repository (deb hardy-backports main) into the /etc/apt/sources.list. Slightly better but far away from perfect: Version 1.5.1 was installed.

I was wondering: Is there a way to install the latest version of SVN without compiling the source distribution? Ubuntu is very widespread and SVN likewise. There needs to be a binary version of SVN 1.6.9 out there... So I googled but failed. Instead I found some up-to-date RPM packages.

At the end I decided to take those RPM packages and convert them into DEB packages.
This worked fine for me:

* Download Red Hat packages at:
* Installation as follows:
apt-get install alien
root@dev:/install/subversion# alien --version
alien version 8.69
alien CollabNetSubversion-client-1.6.9-1.x86_64.rpm
alien CollabNetSubversion-server-1.6.9-1.x86_64.rpm
dpkg -i collabnetsubversion-client_1.6.9-2_amd64.deb
dpkg -i collabnetsubversion-server_1.6.9-2_amd64.deb

vi /etc/environment
root@dev:~# echo $PATH
root@dev:~# svn --version
svn, version 1.6.9 (r901367)
   compiled Jan 24 2010, 16:38:33