Thanks to Wandisco Team, which is maintaining the Debian packages for latest subversion versions. This article will help you to Install Subversion 1.8.15 ( SVN ) on Ubuntu and Debian systems.

Advertisement

1. Setup Apt Repository

First you need to configure apt repository in your system. Use the following commands to add repository on your Ubuntu and Debian systems.

For Ubuntu Systems:-

$ sudo sh -c 'echo "deb http://opensource.wandisco.com/ubuntu `lsb_release -cs` svn18" >> /etc/apt/sources.list.d/subversion18.list'
$ sudo wget -q http://opensource.wandisco.com/wandisco-debian.gpg -O- | sudo apt-key add -
$ sudo apt-get update

For Debian Systems:-

$ sudo sh -c 'echo "deb http://opensource.wandisco.com/debian `lsb_release -cs` svn18" >> /etc/apt/sources.list.d/subversion18.list'
$ sudo wget -q http://opensource.wandisco.com/wandisco-debian.gpg -O- | sudo apt-key add -
$ sudo apt-get update

2. Install Subversion Package

If you have older version installed on your system. You may face some conflict issues. So first remove existing packages from system to avoid any conflicts.

$ sudo apt-get remove subversion

Now install latest available Subversion package using yum command line package manager utility.

$ sudo apt-get install subversion

3. Verify Subversion Version

At this stage you have successfully install Subversion client on your system. Lets use following command to verify version of svn client.

# svn --version


svn, version 1.8.15 (r1718365)
   compiled Dec  8 2015, 17:28:26 on x86_64-unknown-linux-gnu

Copyright (C) 2015 The Apache Software Foundation.
This software consists of contributions made by many people;
see the NOTICE file for more information.
Subversion is open source software, see http://subversion.apache.org/

The following repository access (RA) modules are available:

* ra_svn : Module for accessing a repository using the svn network protocol.
  - with Cyrus SASL authentication
  - handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
  - handles 'file' scheme
* ra_serf : Module for accessing a repository via WebDAV protocol using serf.
  - using serf 1.3.7
  - handles 'http' scheme
  - handles 'https' scheme

References:
1. http://opensource.wandisco.com/

Share.

1 Comment

  1. Guys, just to let you know:

    This line does not work properly with Ubuntu 2017.04 (zesty), because the WANdisco repository does not contain yet any release for zesty (the latest one existing is xenial):
    sudo sh -c ‘echo “deb http://opensource.wandisco.com/ubuntu `lsb_release -cs` svn18″ >> /etc/apt/sources.list.d/subversion18.list’

    I have tried with manually to install the xenial version of svn on zesty, by using
    sudo sh -c ‘echo “deb http://opensource.wandisco.com/ubuntu xenial svn18″ >> /etc/apt/sources.list.d/subversion18.list’

    but I get an error about wrong package signature when doing apt-get update:
    W: GPG error: http://opensource.wandisco.com/ubuntu xenial Release: The following signatures were invalid: 69C1BE83DA54CBED688972F8E9F0E9223BBF077A

    So I guessed the only way to install it is to use an Ubuntu 2016.04 (xenial) server.

    Unfortunately even on xenial I get an error when doing the apt-get update:
    W: http://opensource.wandisco.com/ubuntu/dists/xenial/Release.gpg: Signature by key 69C1BE83DA54CBED688972F8E9F0E9223BBF077A uses weak digest algorithm (SHA1)

    So unfortunately it seems this article is not applicable for installing subversion 1.8 on Ubuntu 2016.04 or Ubuntu 2017.04 🙁

Reply To Dan Cancel Reply

Exit mobile version