Bug 692396

Summary: [yum] localupdate installs obsolete kernel packages
Product: [Fedora] Fedora Reporter: Joachim Frieben <jfrieben>
Component: yumAssignee: Fedora Packaging Toolset Team <packaging-team>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 15CC: ffesti, james.antill, maxamillion, pmatilai, tla
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-07 17:57:18 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Joachim Frieben 2011-03-31 08:51:32 UTC
Description of problem:
Command 'yum localupdate *' installs a kernel which is older than the installed one.

% rpm -q kernel kernel-devel 
kernel-2.6.38.2-9.fc15.x86_64
kernel-devel-2.6.38.2-9.fc15.x86_64

Then, in a directory in which subpackages belonging to build 2.6.38.1-6.fc15 are present:

% yum localupdate *
Loaded plugins: langpacks, refresh-packagekit
Setting up Local Package Process
Examining kernel-2.6.38.1-6.fc15.x86_64.rpm: kernel-2.6.38.1-6.fc15.x86_64
Marking kernel-2.6.38.1-6.fc15.x86_64.rpm to be installed
Examining kernel-devel-2.6.38.1-6.fc15.x86_64.rpm: kernel-devel-2.6.38.1-6.fc15.x86_64
Marking kernel-devel-2.6.38.1-6.fc15.x86_64.rpm to be installed
Examining kernel-doc-2.6.38.1-6.fc15.noarch.rpm: kernel-doc-2.6.38.1-6.fc15.noarch
kernel-doc-2.6.38.1-6.fc15.noarch.rpm: does not update installed package.
Examining kernel-headers-2.6.38.1-6.fc15.x86_64.rpm: kernel-headers-2.6.38.1-6.fc15.x86_64
kernel-headers-2.6.38.1-6.fc15.x86_64.rpm: does not update installed package.
Examining perf-2.6.38.1-6.fc15.x86_64.rpm: perf-2.6.38.1-6.fc15.x86_64
perf-2.6.38.1-6.fc15.x86_64.rpm: does not update installed package.
Resolving Dependencies
--> Running transaction check
---> Package kernel.x86_64 0:2.6.38.1-6.fc15 will be installed
---> Package kernel-devel.x86_64 0:2.6.38.1-6.fc15 will be installed
--> Finished Dependency Resolution

Version-Release number of selected component (if applicable):
yum-3.2.29-4.fc15

How reproducible:
Always.

Steps to Reproduce:
1. Run 'yum localinstall *' where * includes a kernel package than the installed one.
  
Actual results:
yum reports that obsolete kernel will be installed.

Expected results:
yum ignores the obsolete kernel.

Additional info:
This behaviour should only occur for 'yum localinstall *'.

Comment 1 James Antill 2011-03-31 19:21:23 UTC
This appears to be kind of fixed in upstream/rawhide. On an updated F13 I get:

% yum up /var/ftp/mirrors/Fedora/releases/13/Everything/x86_64/os/Packages/kernel-2.6.33.3-85.fc13.x86_64.rpm
Setting up Upgrade Process
Examining /var/ftp/mirrors/Fedora/releases/13/Everything/x86_64/os/Packages/kernel-2.6.33.3-85.fc13.x86_64.rpm: kernel-2.6.33.3-85.fc13.x86_64
Package kernel.x86_64 not installed, cannot update it. Run yum install to install it instead.
Package kernel.x86_64 not installed, cannot update it. Run yum install to install it instead.
Package kernel.x86_64 not installed, cannot update it. Run yum install to install it instead.
Package kernel.x86_64 not installed, cannot update it. Run yum install to install it instead.
No Packages marked for Update
% sudo yum up /var/ftp/mirrors/Fedora/releases/14/Everything/x86_64/os/Packages/kernel-2.6.35.6-45.fc14.x86_64.rpm      
[...]

Total size: 103 M
Is this ok [y/N]: 
Exiting on user Command

...and I assume I get 4 of the weird "not installed" messages because I have 4 kernels installed.

Comment 2 Joachim Frieben 2011-07-10 14:40:11 UTC
Issue still applies to yum-3.2.29-6.fc15.

Comment 3 Fedora Admin XMLRPC Client 2012-04-27 15:38:41 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 4 Fedora End Of Life 2012-08-07 17:57:23 UTC
This message is a notice that Fedora 15 is now at end of life. Fedora
has stopped maintaining and issuing updates for Fedora 15. It is
Fedora's policy to close all bug reports from releases that are no
longer maintained. At this time, all open bugs with a Fedora 'version'
of '15' have been closed as WONTFIX.

(Please note: Our normal process is to give advanced warning of this
occurring, but we forgot to do that. A thousand apologies.)

Package Maintainer: If you wish for this bug to remain open because you
plan to fix it in a currently maintained version, feel free to reopen
this bug and simply change the 'version' to a later Fedora version.

Bug Reporter: Thank you for reporting this issue and we are sorry that
we were unable to fix it before Fedora 15 reached end of life. If you
would still like to see this bug fixed and are able to reproduce it
against a later version of Fedora, you are encouraged to click on
"Clone This Bug" (top right of this page) and open it against that
version of Fedora.

Although we aim to fix as many bugs as possible during every release's
lifetime, sometimes those efforts are overtaken by events. Often a
more recent Fedora release includes newer upstream software that fixes
bugs or makes them obsolete.

The process we are following is described here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping