Bug 1321389

Summary: "dnf install" does inappropriate upgrade
Product: [Fedora] Fedora Reporter: Dave Close <dave.close>
Component: dnfAssignee: rpm-software-management
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: low Docs Contact:
Priority: unspecified    
Version: 23CC: jmracek, jsilhan, mluscon, packaging-team-maint, pnemade, vmukhame
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2016-12-02 14:25:31 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:

Description Dave Close 2016-03-26 00:26:45 UTC
Description of problem:
Create a local version of a system component. In our case, kernel-local with a specific version number equal to the system kernel version at the time the local version was created. Install this kernel (from a local repo) with "dnf -y install kernel-local-$version". Works as expected. Later unintentionally repeat the same command, "dnf -y install kernel-local-$version". (Note, NOT "dnf -y upgrade kernel-local-$version"!) DNF does not report that the package is already installed. Instead, it performs an upgrade to the latest system kernel version. This is not what it was asked to do and causes unexpected difficulties.


Version-Release number of selected component (if applicable):
Stock F23 for all packages except the local kernel.

How reproducible:
Every time.

Steps to Reproduce:
1. As described above.
2.
3.

Actual results:
Newer package installed.

Expected results:
Installation request refused as package is already installed.

Additional info:

Comment 1 Honza Silhan 2016-03-31 13:09:54 UTC
Right, it should skip that package as normal install for already installed non-installonly package.

Comment 2 Fedora Admin XMLRPC Client 2016-07-08 09:38:58 UTC
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.

Comment 3 Fedora End Of Life 2016-11-24 16:14:53 UTC
This message is a reminder that Fedora 23 is nearing its end of life.
Approximately 4 (four) weeks from now Fedora will stop maintaining
and issuing updates for Fedora 23. It is Fedora's policy to close all
bug reports from releases that are no longer maintained. At that time
this bug will be closed as EOL if it remains open with a Fedora  'version'
of '23'.

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

Thank you for reporting this issue and we are sorry that we were not 
able to fix it before Fedora 23 is 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  change the 'version' to a later Fedora 
version prior this bug is closed as described in the policy above.

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.

Comment 4 Jaroslav Mracek 2016-12-02 14:25:31 UTC
The install command was refactored in dnf-2.0. It is available in Fedora rawhide (rc2 version) or from our testing repository in copr (dnf copr enable rpmsoftwaremanagement/dnf-nightly) for Fedora 24+. The mentioned version should solve the problem, but if not, please don't hesitate to reopen the bug report.