[CentOS] yum update conflict
Bowie Bailey
Bowie_Bailey at BUC.com
Tue Apr 11 21:02:18 UTC 2006
Jim Perrin wrote:
> 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
Did that, but it didn't seem to affect anything. But you did manage
to jump-start a few brain cells.
Yum was installing the x86_64 version because of a dependency. The
i386 package was also installed, but wasn't being upgraded. Once I
specified device-mapper on the yum update line, it grabbed both
packages and continued on.
Thanks for the help!
--
Bowie
More information about the CentOS
mailing list