Subversion 1.7 Debian

Update: Confirmed that this process works on svn 1.7.3 and 1.7.4, Works well on Debian Lenny (5.0) so if you have problems and your running Etch (4.0) or older please try and upgrade

At the time of writing Subversion 1.7.x wasn’t in the Debian Apt tree, and as i wanted to use the new HTTPv2 access method i decided to try my hand at building it from source.

I started with a bare bones Debian 6.0.3 box, the only non standard package i installed was ssh.

First off lets let apt-get do all the hard work when it comes to solving the dependencies for building SVN 1.7, we also may as well install Apache2 at this point. I have also added vim as its my text editor of choice for CLI

Be warned, for me i needed 477 (432mb) packages to this may take awhile to get and install

From here, lets use wget to grab the latest source package, the latest version should aways be listed on the Source Downloads on the Subversion website. at time of writing this is 1.7.1

Once this is done extract and install like any other package

Now if our like me you plan to use Apache2 need to copy the modules to the appropriate dir

Now to build a few config files, i prefer vim for my CLI text editing so i’m going to install it now, feel free to

Simple config just copy and paste the text below

Now lets enable the module and restart apache

If you don’t get any errors, Chances everything is installed and configured correctly, you can always use the –version switch on svn or svnadmin to confrim

So its installed, but lets setup a quick and dirty test repo to confrim that apache is working

Config for /etc/apache2/conf.d/svn_test

Restart Apache then you should be good to go

Now browse to http://your_server/svn and you should see a screen similar to the one below

What you should see in your browser

From here you have the worlds most basic SVN server setup, no restrictions or limitations but if your just installing something on your local pc/network this may be enough for you, I plan to follow this up with a post about how i migrated 200gb 300,000+ revision corporate repo from my old 1.6.x server to my new 1.7.1 server


[…] Update 4: Guide now available for SVN 1.7 […]

Milan Brezovsky says:

Thanks for the article! I somehow managed to build svn 1.7-dev client a few months back on Ubuntu, and I loved it so far. However I’m curious if upgrading Debian servers will be worth it for HTTPv2 – will look forward to your post.

Debian is just the choice of distribution on my part, no matter what environment you run svn 1.7.x on you will be using HTTPv2 if your svn client on the end PC is version 1.7.0 or higher, if not it defaults back to the original

Terry Rankine says:

Any chance of an ‘un-official’ package build? I am happy to provide the VM to build it from someone’s repository, but dont want a non-packaged solution on our systems.

Call it a backport if you like?

Never considered it, no promises but i might try and give it a shot over the next few days. Doesn’t look that complex

[…] 1.7.x Na web adresi “Subversion 1.7 Debian” možete pogledati kako brzo i jednostavno instalirati […]

Flo Hash says:

Working for me 🙂
Many thanks !


Kai Hessing says:

Worked prefectly on Wheezy with Subversion 1.7.9 (only using the client)

Leave a Reply

Your email address will not be published.