Bug 1175310 - dnf fails to detect installed package version update
Summary: dnf fails to detect installed package version update
Keywords:
Status: CLOSED DUPLICATE of bug 1160950
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: 21
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-12-17 13:36 UTC by Nikos Mavrogiannopoulos
Modified: 2015-02-09 14:24 UTC (History)
7 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-12-17 15:27:04 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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 ***


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