[CentOS] yum update conflict

Tue Apr 11 20:51:56 UTC 2006
Jim Perrin <jperrin at gmail.com>

On 4/11/06, Bowie Bailey <Bowie_Bailey at buc.com> wrote:
> I updated my i386 systems without any problems, but when I tried to
> update one of my x86_64 systems, I got an error from yum.
>
> Transaction Check Error:   file /usr/include/libdevmapper.h from
> install of device-mapper-1.02.02-3.0.RHEL4 conflicts with file from
> package device-mapper-1.01.04-1.0.RHEL4
>
> So it can't install the newer package because it conflicts with the
> older package???  What's going on here?
>
> Should I force the upgrade in this case, or is there a better
> solution?

That doesn't look right. Create a ~/.rpmmacros file for your user and
root with the following line

%_query_all_fmt %%{name}-%%{version}-%%{release}.%%{arch}

then rerun yum and see if the arch values listed are the same. With
the line above, instead of  device-mapper-1.01.04-1.0.RHEL4 it should
show up as device-mapper-1.01.04-1.0.RHEL4.x86_64

--
Any sufficiently advanced technology is indistinguishable from magic.
-Arthur C. Clarke