Bug 1177074

Summary: can't install or upgrade a kernel because its version is in between already installed versions
Product: [Fedora] Fedora Reporter: Chris Murphy <bugzilla>
Component: dnfAssignee: Radek Holy <rholy>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: akozumpl, jsilhan, jskarvad, jzeleny, kevin, mluscon, ndbecker2, pnemade, rholy, tim.lauridsen
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: 2015-02-09 14:37:21 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Chris Murphy 2014-12-24 04:36:01 UTC
Description of problem: I have one 3.14.x, two 3.18, and one 3.19 kernels installed. I'd like to install a 3.17 kernel but both dnf install and dnf upgrade fail


Version-Release number of selected component (if applicable):
dnf-0.6.3-2.fc21.noarch
hawkey-0.5.2-1.fc21.i686

How reproducible:
Always

Steps to Reproduce:
1. Download rpms from koji into a folder
2. dnf install *rpm
3. dnf upgrade *rpm

Actual results:

[root@f21s kernels]# dnf install *rpm
Package kernel-3.14.26-100.fc19.i686 is already installed, skipping.
Package kernel-core-3.18.0-1.fc22.i686 is already installed, skipping.
Package kernel-debug-3.18.1-2.fc22.i686 is already installed, skipping.
Package kernel-debug-core-3.18.1-2.fc22.i686 is already installed, skipping.
Package kernel-debug-modules-3.18.1-2.fc22.i686 is already installed, skipping.
Package kernel-modules-3.18.0-1.fc22.i686 is already installed, skipping.
Error: Nothing to do.
[root@f21s kernels]# dnf upgrade *rpm
Package kernel of higher version already installed, cannot update it.
Package kernel-core of higher version already installed, cannot update it.
Package kernel-debug of higher version already installed, cannot update it.
Package kernel-debug-core of higher version already installed, cannot update it.
Package kernel-debug-modules of higher version already installed, cannot update it.
Package kernel-modules of higher version already installed, cannot update it.
Error: No packages marked for upgrade.


Expected results:

Seems like one of them should work, and it also seems like for kernels there doesn't need to be a distinction between install and upgrade.

Additional info:

Kernels downloaded that I want installed:

[root@f21s kernels]# ll
total 70000
-rw-r--r--. 1 root root    43120 Dec 23 21:10 kernel-3.17.7-300.fc21.i686.rpm
-rw-r--r--. 1 root root 18131576 Dec 23 21:10 kernel-core-3.17.7-300.fc21.i686.rpm
-rw-r--r--. 1 root root    43200 Dec 23 21:10 kernel-debug-3.17.7-300.fc21.i686.rpm
-rw-r--r--. 1 root root 19339820 Dec 23 21:12 kernel-debug-core-3.17.7-300.fc21.i686.rpm
-rw-r--r--. 1 root root 17332348 Dec 23 21:12 kernel-debug-modules-3.17.7-300.fc21.i686.rpm
-rw-r--r--. 1 root root 16779072 Dec 23 21:12 kernel-modules-3.17.7-300.fc21.i686.rpm

Comment 1 Chris Murphy 2014-12-24 05:17:39 UTC
yum install *rpm works

Comment 2 Radek Holy 2015-01-07 15:55:13 UTC
*** Bug 1179720 has been marked as a duplicate of this bug. ***

Comment 3 Radek Holy 2015-01-07 16:02:08 UTC
Thank you for the report and for a nice example. I also think that we should support "dnf install kernel-X.Y" since kernel is "installonly" and it's intuitive to call "dnf install" then. Even more things like "dnf downgrade kernel-X.Y" do not make sense to me since it actually does not do a downgrade.

Comment 4 Honza Silhan 2015-01-15 16:30:32 UTC
Radek, change install to do what you wrote in comment 3, please.

Comment 5 Honza Silhan 2015-01-20 11:03:38 UTC
*** Bug 1160004 has been marked as a duplicate of this bug. ***

Comment 6 Radek Holy 2015-02-02 08:05:46 UTC
*** Bug 1187721 has been marked as a duplicate of this bug. ***

Comment 7 Radek Holy 2015-02-09 14:37:21 UTC
The root cause is the same as in bug 1160950.

*** This bug has been marked as a duplicate of bug 1160950 ***