noarch wins over i386 even if evr-older?
Axel Thimm <[email protected]>
| Newsgroups | gmane.linux.rpm.yum |
|---|---|
| Message-ID | <[email protected]> |
Hi, I have a custom redhat-rpm-config package that I want to deploy. It has a never evr than the standard package, and since the contents are arch dependent, it is not noarch anymore. On a RHEL5/i386 with a self-compiled yum 3.2.22 I see > # repoquery redhat-rpm-config > redhat-rpm-config-0:9.0.1-1_29.el5.i386 > redhat-rpm-config-0:8.0.45-29.el5.noarch > # yum install redhat-rpm-config > Setting up Install Process > Resolving Dependencies > --> Running transaction check > ---> Package redhat-rpm-config.noarch 0:8.0.45-29.el5 set to be updated > --> Finished Dependency Resolution > > Dependencies Resolved > > ================================================================================ > Package Arch Version Repository > Size > ================================================================================ > Installing: > redhat-rpm-config noarch 8.0.45-29.el5 release > 55 k > > Transaction Summary > ================================================================================ > Install 1 Package(s) > Update 0 Package(s) > Remove 0 Package(s) > > Total download size: 55 k > Is this ok [y/N]: yum list does show both packages. Also yum install redhat-rpm-config.i386 picks the proper package. But even in this case a second install command w/o arch results in an error: > # yum -qy install redhat-rpm-config > Setting up Install Process > Resolving Dependencies > --> Running transaction check > ---> Package redhat-rpm-config.noarch 0:8.0.45-29.el5 set to be > updated > --> Finished Dependency Resolution > > Dependencies Resolved > > ================================================================================ > Package Arch Version Repository > Size > ================================================================================ > Installing: > redhat-rpm-config noarch 8.0.45-29.el5 release > 55 k > > Transaction Summary > ================================================================================ > Install 1 Package(s) > Update 0 Package(s) > Remove 0 Package(s) > > Total download size: 55 k > Downloading Packages: > Running rpm_check_debug > Running Transaction Test > Finished Transaction Test > > > Transaction Check Error: > package redhat-rpm-config-9.0.1-1_29.el5.i386 (which is newer than > redhat-rpm-config-8.0.45-29.el5.noarch) is already installed It looks like the yum cli prefers noarch over arch specific packages when not explicitely told to pick an arch. Shouldn't it first check the evr and then favour an arch/noarch? As a further manifestation of the bug, a yum update does properly remove the old noarch package and replaces it with the i386 one. E.g. yum update does the right thing, yum install not. Thanks! -- Axel.Thimm at ATrpms.net _______________________________________________ Yum mailing list [email protected] http://lists.baseurl.org/mailman/listinfo/yum
signature.asc
(application/pgp-signature, 197 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (GNU/Linux) iEUEARECAAYFAkphsp0ACgkQQBVS1GOamfHBdACY5bP72gkoJGhy5oTR2m5DRPj+ KQCglp3v2BR37YWD7b3sL1g8J2wCzZk= =ecBb -----END PGP SIGNATURE-----