[Rpm-maint] unexpected file conflict behavior

steven chen stevench2000 at gmail.com
Thu Oct 30 19:33:16 UTC 2008


 Hi,

Good day.
Recently I had a weird situation where I can install two rpms together (in
one line) without any errors but once I install them one after the other, I
got a file conflict errors. When looking closedly, the files that complain
about conflicting are actually owned by both packages.
Can anyone please shed some lights on me why installing them together will
work? (I actually expect to see file conflict error there too).
Thanks in advance.

# rpm -ivh libstdc++-devel-3.4.4-2.ppc.rpm

Preparing... ########################################### [100%]

1:libstdc++-devel ########################################### [100%]

# rpm -ivh libstdc++-devel-3.4.4-2.ppc64.rpm

Preparing... ########################################### [100%]

file /usr/include/c++/3.4.3/ppc64-redhat-linux/bits/stdc++.h.gch/O0g from
install of libstdc++-devel-3.4.4-2 conflicts with file from package
libstdc++-devel-3.4.4-2

file /usr/include/c++/3.4.3/ppc64-redhat-linux/bits/stdc++.h.gch/O2g from
install of libstdc++-devel-3.4.4-2 conflicts with file from package
libstdc++-devel-3.4.4-2

# rpm -qa | grep libstdc++-devel | xargs rpm -e --allmatches --nodeps

# rpm -ivh libstdc++-devel-3.4.4-2.ppc64.rpm libstdc++-devel-3.4.4-2.ppc.rpm

Preparing... ########################################### [100%]

1:libstdc++-devel ########################################### [ 50%]

2:libstdc++-devel ########################################### [100%]

# rpm -qf /usr/include/c++/3.4.3/ppc64-redhat-linux/bits/stdc++.h.gch/O0g

libstdc++-devel-3.4.4-2

libstdc++-devel-3.4.4-2

# rpm --version

RPM version 4.3.3

Regards,

-----------------------------------------------------------------------------------

Steven
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.rpm.org/pipermail/rpm-maint/attachments/20081030/1433d6af/attachment.htm 


More information about the Rpm-maint mailing list