LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   File conflict on update from CentOS 5.4 to 5.10 (https://www.linuxquestions.org/questions/linux-software-2/file-conflict-on-update-from-centos-5-4-to-5-10-a-4175490759/)

TAMUK_HPCC 01-09-2014 10:14 PM

File conflict on update from CentOS 5.4 to 5.10
 
Hello everyone:

I am in the process of updating a machine running CentOS 5.4 to CentOS 5.10 (the latest and last 5-series version).

I get the following Transaction Check Errors when doing yum update:

file /etc/rc.d/init.d/openibd from install of openib-1.5.4.1-4.el5.noarch conflicts with file from kernel-ib-1.5.1.0-2.6.18_164.6.1.el5xen.x86_64

file /etc/udev/rules.d/90-ib.rules from install of openlib-1.5.4.1-4.el5.noarch conflicts with file from package kernel-ib-1.5.1.0-2.6.18_164.6.1.el5xen.x86_64

The openib... is one of the additional packages being installed due to dependencies.

I have tried --exclude= but the exclusion generates other errors.

Any suggestions would be greatly appreciated.

Robert

RockDoctor 01-10-2014 08:35 AM

Best option - just avoid upgrading the conflicting package(s)

Not-so-good option:
1. Download the rpms for the currently installed versions of the conflicting packages
2. Download the rpm for new version of the package to be upgraded
3. Forcibly install the new package (rpm -Uvh --nodeps ...)
If everything works, then great. If not, forcibly reinstall the old packages

I've used the not-so-good option with mixed results when working with Fedora Rawhide. Consider yourself warned.

knudfl 01-10-2014 02:49 PM

How to avoid updating e.g. "openib" :

Add a line to /etc/yum.conf
Code:

exclude=openib*
! Be aware that the wildcard ( * ) is important. Cannot be omitted.
http://kmaiti.blogspot.dk/2011/02/ho...n-yumconf.html

-

John VV 01-10-2014 03:34 PM

all of the above
and keep in mind that RHEL5/CentOS5/SL5 all have some very NASTY conflicts with the third party repos
things like rpmforge are incompatible with the centos 5 update and base repos

you REALLY do need to have installed and CONFIGURED "yum-priorities" plugin
-- or PROTECT BASE !!!

Priorities
http://wiki.centos.org/PackageManagement/Yum/Priorities

ProtectBase
http://wiki.centos.org/PackageManage...um/ProtectBase


All times are GMT -5. The time now is 01:47 PM.