When upgrading Subversion on CentOS you may run into a conflict issue under certain circumstances. I noticed this issue when installing git via yum which required an upgrade of subversion. The installation of git failed because of a “Transaction Check Error” that was caused by the upgrade of subversion. The special circumstances included a 64-Bit install of CentOS and the rpmforge yum repo being installed.
To resolve this issue simply remove the 32-Bit version of subversion and then proceed. The process of getting this error and actually completing a successful upgrade of subversion is detailed below.
The error was as follows.
- [root@server ~]# yum upgrade subversion
- Loading "installonlyn" plugin
- Setting up Upgrade Process
- Setting up repositories
- Reading repository metadata in from local files
- Could not find update match for subversion.i386
- Resolving Dependencies
- --> Populating transaction set with selected packages. Please wait.
- ---> Package subversion.x86_64 0:1.5.5-0.1.el5.rf set to be updated
- --> Running transaction check
- Dependencies Resolved
- =============================================================================
- Package Arch Version Repository Size
- =============================================================================
- Updating:
- subversion x86_64 1.5.5-0.1.el5.rf rpmforge 5.7 M
- Transaction Summary
- =============================================================================
- Install 0 Package(s)
- Update 1 Package(s)
- Remove 0 Package(s)
- Total download size: 5.7 M
- Is this ok [y/N]: y
- Downloading Packages:
- Running Transaction Test
- Finished Transaction Test
- 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
To resolve this issue just remove the i386 version of subversion using the below command.
- yum remove subversion.i386
You can now proceed with upgrading the 64 bit version of subversion on your CentOS server as shown below.
- [root@server ~]# yum update subversion
- Loading "installonlyn" plugin
- Setting up Update Process
- Setting up repositories
- Reading repository metadata in from local files
- Resolving Dependencies
- --> Populating transaction set with selected packages. Please wait.
- ---> Package subversion.x86_64 0:1.5.5-0.1.el5.rf set to be updated
- --> Running transaction check
- Dependencies Resolved
- =============================================================================
- Package Arch Version Repository Size
- =============================================================================
- Updating:
- subversion x86_64 1.5.5-0.1.el5.rf rpmforge 5.7 M
- Transaction Summary
- =============================================================================
- Install 0 Package(s)
- Update 1 Package(s)
- Remove 0 Package(s)
- Total download size: 5.7 M
- Is this ok [y/N]: y
- Downloading Packages:
- Running Transaction Test
- Finished Transaction Test
- Transaction Test Succeeded
- Running Transaction
- Updating : subversion ######################### [1/2]
- Cleanup : subversion ######################### [2/2]
- Updated: subversion.x86_64 0:1.5.5-0.1.el5.rf
- Complete!
The issue is that yum gets confused on various files that it thinks it will need to upgrade to successfully get through the 64 bit subversion upgrade. By removing the 32 bit version you remove the confusion.
Thank you so much! I was just about to reinstall the whole package and then I found this and tried it and it worked!
Hello Patrick,
No problem. Glad the article helped you out. Thanks for taking the time to leave feedback.
Thanks.
alex