Bug 1175310

Summary: dnf fails to detect installed package version update
Product: [Fedora] Fedora Reporter: Nikos Mavrogiannopoulos <nmavrogi>
Component: dnfAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: akozumpl, jsilhan, mluscon, packaging-team-maint, 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: 2014-12-17 15:27:04 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 Nikos Mavrogiannopoulos 2014-12-17 13:36:40 UTC
When trying to test an update of a package of mine, I realized that it was impossible to install it with dnf, while yum had no issue installing it.

DNF:

$ sudo dnf install -y crypto-policies-20140905-2.git4649b7d.fc21.noarch.rpm
[sudo] password for nmav: 
Package crypto-policies-20140905-1.git4649b7d.fc21.noarch is already installed, skipping.
Error: Nothing to do.


YUM:

$ sudo yum install -y crypto-policies-20140905-2.git4649b7d.fc21.noarch.rpm
Loaded plugins: auto-update-debuginfo, langpacks
Examining crypto-policies-20140905-2.git4649b7d.fc21.noarch.rpm: crypto-policies-20140905-2.git4649b7d.fc21.noarch
Marking crypto-policies-20140905-2.git4649b7d.fc21.noarch.rpm as an update to crypto-policies-20140905-1.git4649b7d.fc21.noarch
Resolving Dependencies
--> Running transaction check
---> Package crypto-policies.noarch 0:20140905-1.git4649b7d.fc21 will be updated
---> Package crypto-policies.noarch 0:20140905-2.git4649b7d.fc21 will be an update

while rpmdev-vercmp reports:

crypto-policies-20140905-2.git4649b7d.fc21 > crypto-policies-20140905-1.git4649b7d.fc21

Comment 1 Nikos Mavrogiannopoulos 2014-12-17 15:27:04 UTC
well, it seems that dnf update does the expected thing, even though that behavior is unclear from the man page.

Comment 2 Radek Holy 2014-12-17 16:12:55 UTC
To be precise, this is a duplicate of bug 1138700. Anyway, we need to reconsider the behaviour of the "install" command. And Nikos, feel free to open a bug if the man page does not describe something that it should.

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

Comment 3 Radek Holy 2015-02-09 14:24:43 UTC

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