rpm update on multilib system ignores duplicate package name with different arch on command line

chris moden chrismoden at yahoo.com.au
Mon Nov 4 21:46:24 UTC 2013


Hi Jason,

Shouldn't you be using yum, that's what its for ie installs/upgrades whilst automatically taking care of dependencies?



Cheers
Chris Moden


________________________________
 From: Jason Henderson <jasonhen at rogers.com>
To: "rpm-list at lists.rpm.org" <rpm-list at lists.rpm.org> 
Sent: Tuesday, 5 November 2013 5:19 AM
Subject: rpm update on multilib system ignores duplicate package name with different arch on command line
 


I have a Linux distro (based on CentOS) which contains both i686 and x86_64 versions of some rpm packages. In the example below I want to upgrade the installed glibc.i686, glibc.x86_64 and glibc-common.i686 packages at the same time.


As shown the rpm command ignores the glibc.x86_64 package when glibc.i686 proceeds it in the list of packages to upgrade. The end result being that the glibc.x86_64 package is removed from the system.

If  I omit the --nodeps option in the command there are many dependency errors produced since the command is effectively removing the required glibc.x86_64 package.


I can reinstall the required glibc.x86_64 package manually but my end goal is to be able to omit the --nodeps option to get a proper dependency check and have the i686 and x86_64 packages upgraded correctly at the same time.


My question is, should rpm handle this case or is such a multilib upgrade not supported?


Example:

[root at 64-bit]# rpm -qa | grep glibc
glibc-2.12-1.107.el6_4.4.x86_64
glibc-2.12-1.107.el6_4.4.i686
glibc-common-2.12-1.107.el6_4.4.i686

[root at 64-bit]# rpm -Uvh --nodeps
 glibc-common-2.12-1.107.el6_4.5.i686.rpm glibc-2.12-1.107.el6_4.5.i686.rpm glibc-2.12-1.107.el6_4.5.x86_64.rpm nscd-2.12-1.107.el6_4.5.i686.rpm

warning: glibc-common-2.12-1.107.el6_4.5.i686.rpm: Header V3 RSA/SHA1 Signature, key ID c105b9de: NOKEY
warning: package glibc = 2.12-1.107.el6_4.5 was already added, skipping glibc = 2.12-1.107.el6_4.5

Preparing...                   
1:glibc                   [ 33%]
2:glibc-common     [ 67%]
3:nscd                   [100%]

[root at 64-bit]# rpm -qa | grep glibc
glibc-common-2.12-1.107.el6_4.5.i686
glibc-2.12-1.107.el6_4.5.i686

Thanks.

Jason




_______________________________________________
Rpm-list mailing list
Rpm-list at lists.rpm.org
http://lists.rpm.org/mailman/listinfo/rpm-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-list/attachments/20131104/f1d35652/attachment.html>


More information about the Rpm-list mailing list