Bug 137681 - yum considers x.i386 newer than x+1.noarch
Summary: yum considers x.i386 newer than x+1.noarch
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: rawhide
Hardware: i386
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeremy Katz
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2004-10-30 15:51 UTC by Ralf Ertzinger
Modified: 2014-01-21 22:50 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2004-10-30 16:05:46 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Ralf Ertzinger 2004-10-30 15:51:38 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; rv:1.7.3) Gecko/20041020
Firefox/0.10.1

Description of problem:
Yum considers .noarch packages older that .i386 packages, even when
epoch, version and release show otherwise.
Example session:

[sun@nausicaa ~ :) 1]$ yum list switchdesk
Setting up Repo:  freshrpms
Setting up Repo:  os
Reading repository metadata in from local files
freshrpms : ################################################## 459/459
os        : ################################################## 3426/3426
Installed Packages
switchdesk.i386                          3.9.8-18               installed
Available Packages
switchdesk.noarch                        4.0.6-3                os
[sun@nausicaa ~ :( (1) 3]$ sudo yum upgrade switchdesk
Setting up Upgrade Process
Setting up Repo:  freshrpms
repomd.xml                100% |=========================|  843 B   
00:00     
Setting up Repo:  os
repomd.xml                100% |=========================| 1.1 kB   
00:00     
Reading repository metadata in from local files
freshrpms : ################################################## 459/459
os        : ################################################## 3426/3426
Could not find update match for switchdesk
No Packages marked for Update/Obsoletion


Version-Release number of selected component (if applicable):
yum-2.1.11-2

How reproducible:
Always

Steps to Reproduce:
1. Ask yum uo upgrade a .386 package to a .noarch one
2.
3.
    

Actual Results:  No upgrade happens

Expected Results:  Upgrade

Additional info:

Comment 1 Seth Vidal 2004-10-30 16:05:46 UTC
No, it doesn't have anything to do with the version number.

The arch of switchdesk you have installed is i386.

switchdesk has now become noarch.
yum has a setting (exactarch) which determines if packages are allowed
to change arch b/t updates. If exactarch is set to 1 then packages are
not allowed to change arch during an update. If it is set to 0 they
are allowed to change arch.

look in your /etc/yum.conf - look at exactarch.

you can do this:
1. exactarch=0 in /etc/yum.conf
2. yum update switchdesk
3. put exactarch=1 back

exactarch=1 is there so you don't accidentally 'upgrade' from an i686
pkg to an i386 pkg - especially with glibc and certain core packages.




Note You need to log in before you can comment on or make changes to this bug.