Thanks to WANdisco, which is maintaining the rpm packages for latest Subversion version. This article will help you to install Subversion 1.8.19 (SVN Client) on CentOS/RHEL 7/6/5 Systems. If you want to configure Subversion server visit this article.

Advertisement

Step 1 – Setup Yum Repository

Firstly we need to configure yum repository on our system. Create a new repo file /etc/yum.repos.d/wandisco-svn.repo and add following content as per your operating system version.

vim /etc/yum.repos.d/wandisco-svn.repo
[WandiscoSVN]
name=Wandisco SVN Repo
baseurl=http://opensource.wandisco.com/centos/$releasever/svn-1.8/RPMS/$basearch/
enabled=1
gpgcheck=0

Step 2 – Install Subversion Package

Before installing latest package remove existing subversion packages from system to remove the conflict.

yum remove subversion*

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

yum clean all
yum install subversion

Step 3 – Verify SVN Version

At this stage, you have successfully install Subversion client on your system. Let’s use the following command to verify the version of svn client.

svn --version

svn, version 1.8.19 (r1800620)
   compiled Aug 11 2017, 09:34:52 on x86_64-redhat-linux-gnu

Copyright (C) 2017 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.

22 Comments

  1. I tried, but it did not work for me:

    –> Finished Dependency Resolution
    Error: Package: subversion-1.8.19-1.x86_64 (WandiscoSVN)
    Requires: apr >= 1.2.7
    Error: Package: serf-1.3.7-1.x86_64 (WandiscoSVN)
    Requires: libapr-1.so.0()(64bit)
    Error: Package: serf-1.3.7-1.x86_64 (WandiscoSVN)
    Requires: libaprutil-1.so.0()(64bit)
    Error: Package: subversion-1.8.19-1.x86_64 (WandiscoSVN)
    Requires: libaprutil-1.so.0()(64bit)
    Error: Package: subversion-1.8.19-1.x86_64 (WandiscoSVN)
    Requires: libapr-1.so.0()(64bit)
    Error: Package: subversion-1.8.19-1.x86_64 (WandiscoSVN)
    Requires: apr-util >= 1.2.7
    You could try using –skip-broken to work around the problem
    You could try running: rpm -Va –nofiles –nodigest

  2. Is SVN 1.6.12 compatible with RHEL7 as we are upgrading the Linux servers from RedHat5 to 7.
    Please let me know the possibilities and dependencies.

  3. I am working on an upgrade from subversion 1.6 to 1.8.15. The reason for not going to the latest version, is that the file format of 1.8.15 is still compatible with 1.6. I have the subversion 1.8.15 installed on a new server and transferred the repositories from the current production server to this new server. Then I tried to issue the command ‘svn cleanup’ in the directoy subv_repos where the repositories stored, I got the error
    ‘/subv_repos’ is not a working copy directory
    can anyone advise? thanks.

  4. Hi,

    after installing subversion, successfully, I am trying to install mod_dav_svn and getting:

    Error: Package: apr-util-pgsql-1.5.3-2.WANdisco.8.x86_64 (WandiscoSVN)
    Requires: libpq.so.4()(64bit)

    any help would be very appreciated

  5. When I try to install subversion I get the following :

    yum install subversion
    Setting up Install Process
    : [Errno 14] PYCURL ERROR 6 – “Couldn’t resolve host ‘opensource.wandisco.com'”
    Trying other mirror.
    Error: Cannot retrieve repository metadata (repomd.xml) for repository: WandiscoSVN. Please verify its path and try again

    Anyone had the same issue ?

    • Seems like your network is unable access the wandisco host. Are you behind a firewall?
      If you are behind a firewall try to open the access to the wandisco host. If not possible do the manual setup like download the binaries subversion,httpd, svn-dav-module and compile them manually. It is pretty easy you can google for the setup process for each binary.

    • For anybody else looking the reason for this is the server identifying itself as 6Server (or 7Server in my case), but the mirror only has the version number 6 or 7. I changed the repo configuration entry for mine to this:

      baseurl=http://opensource.wandisco.com/centos/7/svn-1.8/RPMS/$basearch/

  6. Thanks, I spent almost 4 hours trying other suggestions and then came across this, I guess all will be working fine but now I’ll need to test the installation.

  7. Martin Plascencia on

    Hey! Thank you very much!

    You saved me. I was trying to upgrade Subversion for a few days with no luck. And the thing was getting annoying because my SVN client was not able to commit to an outdated Subversion server.

    I really appreciate it.

  8. I can’t install subversion according to your howto. A dependency could’nt be satisfied:

    [root@cbf35f68a44e /]# cat /etc/centos-release
    CentOS Linux release 7.1.1503 (Core)
    [root@cbf35f68a44e /]#

    Resolving Dependencies
    –> Running transaction check
    —> Package subversion.x86_64 0:1.8.11-1 will be installed
    –> Processing Dependency: apr-util >= 1.2.7 for package: subversion-1.8.11-1.x86_64
    –> Processing Dependency: apr >= 1.2.7 for package: subversion-1.8.11-1.x86_64
    –> Processing Dependency: libapr-1.so.0()(64bit) for package: subversion-1.8.11-1.x86_64
    –> Processing Dependency: libaprutil-1.so.0()(64bit) for package: subversion-1.8.11-1.x86_64
    –> Processing Dependency: libserf-1.so.0()(64bit) for package: subversion-1.8.11-1.x86_64
    –> Running transaction check
    —> Package apr.x86_64 0:1.4.8-3.el7 will be installed
    —> Package apr-util.x86_64 0:1.5.2-6.el7 will be installed
    —> Package subversion.x86_64 0:1.8.11-1 will be installed
    –> Processing Dependency: libserf-1.so.0()(64bit) for package: subversion-1.8.11-1.x86_64
    –> Finished Dependency Resolution
    Error: Package: subversion-1.8.11-1.x86_64 (WandiscoSVN)
    Requires: libserf-1.so.0()(64bit)
    You could try using –skip-broken to work around the problem
    You could try running: rpm -Va –nofiles –nodigest

  9. You should also exclude the older versions of subversion in the CentOS base yum repo by adding

    exclude=subversion*

    to your base.repo file under /etc/yum.repos.d.

Exit mobile version