Skip to content

Updating Subversion on 64-bit Linux (Centos 5)

I just ran into a problem when trying to upgrade to the latest rpm-packaged version of Subversion on Centos 5 x86_64 — simple solution, but not obvious, so hopefully this will help someone.

It goes like this, as root:

$ yum update subversion

[normal messages snipped]

Transaction Check Error:
  file /usr/share/emacs/site-lisp/psvn.el
from install of subversion-1.5.5-0.1.el5.rf
conflicts with file from package subversion-1.4.2-2.el5
  file /usr/share/man/man1/svn.1.gz
from install of subversion-1.5.5-0.1.el5.rf
conflicts with file from package subversion-1.4.2-2.el5
  file /usr/share/man/man1/svnadmin.1.gz
from install of subversion-1.5.5-0.1.el5.rf
conflicts with file from package subversion-1.4.2-2.el5
  file /usr/share/man/man1/svnlook.1.gz
from install of subversion-1.5.5-0.1.el5.rf
conflicts with file from package subversion-1.4.2-2.el5
  file /usr/share/man/man5/svnserve.conf.5.gz
from install of subversion-1.5.5-0.1.el5.rf
conflicts with file from package subversion-1.4.2-2.el5
  file /usr/share/man/man8/svnserve.8.gz
from install of subversion-1.5.5-0.1.el5.rf
conflicts with file from package subversion-1.4.2-2.el5
  file /usr/share/xemacs/site-packages/lisp/psvn.el
from install of subversion-1.5.5-0.1.el5.rf
conflicts with file from package subversion-1.4.2-2.el5

WTF? Surely doing an update is supposed to replace files from an earlier release with a later one?

The reason, as my colleague Ian discovered, is that 64-bit Centos has both 32 and 64-bit versions of Subversion, which causes it to get its knickers in a twist when doing an update. So we just did the following:

$ yum erase subversion.i386
$ yum update subversion

to remove the 32-bit version and then just update the 64-bit one. Works fine. (Touch wood…)

Probably works with Redhat Enterprise (RHEL) too and possibly other distros.

EDIT: If you only have the Centos base RPM repository, you won’t find svn 1.5.5 (or any recent versions). You need to set your system up to use RPMForge as well, as documented here. Thanks to GR in the comments for pointing this out.

Andrew.

Share/save this page:
  • email
  • Google Bookmarks
  • Twitter
  • FriendFeed
  • del.icio.us
  • Digg
  • Reddit
  • StumbleUpon
  • Technorati
  • DZone
  • Slashdot
  • Fark
  • Facebook
  • MySpace
  • LinkedIn
  • Live
  • connotea

{ 9 } Comments

  1. GR | February 5, 2009 at 1:40 am | Permalink

    What repo are you using for SVN? The standard CentOS repos top out at 1.1.4-2.

    –GR

  2. Brian Pane | February 11, 2009 at 12:24 am | Permalink

    I have a new CentOS 5.2 64 Bit system, I am not able to install the latest svn 1.5.5 on the system.

    Any one has a proper steps to follow to install svn 1.5.5 on the CentOS 5.2 64 Bit system?

    Thanks!

  3. Andrew | February 11, 2009 at 10:00 am | Permalink

    Brian, what happens when you try adding the RPMForge repository and doing

    yum install subversion

    or

    yum update subversion

    ?

    What error do you actually get?

  4. Brian Pane | February 11, 2009 at 9:05 pm | Permalink

    The “yum update subversion” says the local version is up to date. So, I cannot use “yum update subversion” because the Yum Server is not providing the latest of subversion of 1.5.5 for the CentOS 64 Bit system.

    Next, I do the following:
    $ yum erase subversion.i386
    $ yum update subversion

    And try to install using the following command: rpm -Uvh CollabNetSubversion-client-1.5.5-1.x86_64.rpm having trouble because of other dependencies. It seems that I need to rebuild the subversion locally with all the required libraries.

    Again, this is the New CentOS 64 latest with the following uname –a command:

    2.6.18-92.1.22.el5xen #1 SMP Tue Dec 16 12:26:32 EST 2008 x86_64 x86_64 x86_64 GNU/Linux

    Thanks in advanced!

  5. Andrew | February 11, 2009 at 9:31 pm | Permalink

    Have you added RPMForge to the list of repositories yum knows about, as described at the bottom of the post? What do you see when you type

    ls /etc/yum.repos.d/

    ?

  6. Brian Pane | February 12, 2009 at 1:07 am | Permalink

    [root@linuxbuild20 .pgp]# ls -al /etc/yum.repos.d
    total 32
    drwxr-xr-x 2 root root 4096 Jun 21 2008 .
    drwxr-xr-x 75 root root 4096 Feb 11 16:10 ..
    -rw-r–r– 1 root root 2049 Jun 19 2008 CentOS-Base.repo
    -rw-r–r– 1 root root 626 Jun 19 2008 CentOS-Media.repo
    [root@linuxbuild20 .pgp]#

  7. Brian Pane | February 12, 2009 at 1:08 am | Permalink

    How to add RPMForge? Thanks!

  8. Brian Pane | February 12, 2009 at 1:10 am | Permalink

    Okay, I will try to follow the RPMForge link.

    CentOS 5 – install rpmforge yum repo

    Thanks!

  9. Murillo Gomes | September 28, 2009 at 9:30 pm | Permalink

    Hi,

    Thanks a lot. I was with the same problem and this worked with RHEL5.

    Regards,

    Murillo Gomes

{ 2 } Trackbacks

  1. [...] http://biotext.org.uk/updating-subversion-on-64-bit-linux-centos-5/ [...]

  2. [...] box. I don’t even need the i.386 version. Why is it conflicting? Googling around, I found this post on biotext.org. It says I have to remove the i.386 version of Subversion. Makes [...]

Post a Comment

Your email is never published nor shared. Required fields are marked *