Where can I find a Subversion 1.7 binary?
As of Ubuntu 12.10, subversion 1.7 is available as part of the distribution. Subversion can be installed using apt-get.
sudo apt-get install subversion
For earlier versions of Ubuntu, there is a ppa available at subversion-1.7. The repository can be added as follows:
sudo apt-add-repository ppa:dominik-stadler/subversion-1.7
To get the latest version of subversion update and upgrade the repository.
sudo apt-get update
sudo apt-get upgrade
I needed to also do a dist-upgrade.
sudo apt-get dist-upgrade
I'm assuming that you already have subversion installed, if not:
sudo apt-get install subversion
There's also a ppa supported directly by the subversion team: "Subversion" team.
You should be able to add the ppa with the following command:
sudo apt-add-repository ppa:svn/ppa
The apt-add-repository command is provided by the python-software-properties package, so make sure to install it first.
Note: RabbitVCS seems to have a problem with subversion 1.7: Rabbitvcs does not mark as versioned subfodlers/files in svn 1.7. This is fixed in the trunk but hasn't (yet) been pushed to a build.
The Wandisco script actually install a new repository which contains the .deb file for installing SVN 1.7.
Almost the same can be accomplish by executing the following commands:
sudo add-apt-repository 'deb http://opensource.wandisco.com/ubuntu lucid svn17'
sudo wget -q http://opensource.wandisco.com/wandisco-debian.gpg -O- | sudo apt-key add -
sudo apt-get update
sudo apt-get install subversion
When use Trac You may notice a problem after upgrading Your Subversion using WANdisco repository. Its symptom is a message in Trac site:
Warning: Can't synchronize with repository "(default)" (Unsupported version control system "svn": No module named svn). Look in the Trac log for more information.
This package binds svn to python2.6 and Ubuntu 12.04 has python2.7. Here is a script which solved the problem on my side:
mkdir /usr/lib/python2.7/dist-packages/libsvn
for f in /usr/lib/pyshared/python2.6/libsvn/*; do ln -s $f /usr/lib/python2.7/dist-packages/libsvn/; done
for f in /usr/share/pyshared/libsvn/*; do ln -s $f /usr/lib/python2.7/dist-packages/libsvn/; done
mkdir /usr/lib/python2.7/dist-packages/svn
for f in /usr/share/pyshared/svn/*; do ln -s $f /usr/lib/python2.7/dist-packages/svn/; done
mkdir /usr/lib/pyshared/python2.7/libsvn
for f in /usr/lib/pyshared/python2.6/libsvn/*; do ln -s $f /usr/lib/pyshared/python2.7/libsvn/; done
I've used wandisco binaries with apt sources as Fernando described, but now that next Ubuntu version has official binaries updated to 1.7 I wanted to use those while sticking with 12.04 LTS.
Added the following sources to a new file /etc/apt/sources.list.d/svn17.list:
deb http://archive.ubuntu.com/ubuntu/ quantal main universe
deb-src http://archive.ubuntu.com/ubuntu/ quantal main universe
And then according to advice on https://help.ubuntu.com/community/PinningHowto an /etc/apt/apt.conf.d/90svn17:
APT::Default-Release "precise";
Then installed using
sudo apt-get install -V subversion -t quantal
Not sure if these new filenames follow the proper conventions but it works. Tried pinning config first but with no luck. With "-t quantal" pinning wasn't needed.