Blog Just another tech site

1Jul/123

Centos: Yum update error “file from install of conflicts with file from package”

Centos Yum Update Issue

Recently I decided to update a few linux servers that I maintain and found some issues while running yum update which were stopping updates. Many errors showing that file conflicts with the file from package etc. All of the servers are 64 bit, but it seemed that yum had previously downloaded 32 bit versions of the programs installed, so these useless copies have to be removed.

file /usr/share/man/man1/perlplan9.1.gz from install of perl-5.8.8-38.el5.x86_64 conflicts with file from package perl-5.8.8-32.el5_7.6.i386
file /usr/share/man/man1/perlpod.1.gz from install of perl-5.8.8-38.el5.x86_64 conflicts with file from package perl-5.8.8-32.el5_7.6.i386
file /usr/share/man/man1/perlpodspec.1.gz from install of perl-5.8.8-38.el5.x86_64 conflicts with file from package perl-5.8.8-32.el5_7.6.i386
file /usr/share/man/man1/perlport.1.gz from install of perl-5.8.8-38.el5.x86_64 conflicts with file from package perl-5.8.8-32.el5_7.6.i386

The steps I took to resolve the issues:

  1. yum remove \*.i386 \*.i686
  2. If you don't want to issue to reoccur, echo "exclude = *.i?86" >> /etc/yum.conf
  3. yum reinstall \* or yum update

3 responses to “Centos: Yum update error “file from install of conflicts with file from package””

  1. Samar says:

    I guess you could just remove the offending packages as well. In my case, I had an issue of ruby library still present while trying to install newer version of ruby. Since I had crappy internet connection, remove *.i386 would remove so many packages. So I listed the packages list and removed the offending ones only.

    Correct me if I’m wrong.

  2. Murali says:

    Hi,
    How to resolve dependency and conflict errors

  3. Haakon says:

    The whole yum reinstall thing helped me figure out an issue with converting CentOS to Oracle Linux. Thanks mate.

Leave a Reply

Your email address will not be published. Required fields are marked *