Bug 1157228

Summary: "dnf install" does not always find latest version of dependency
Product: [Fedora] Fedora Reporter: Steve Bryant <stephenbryant>
Component: dnfAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: akozumpl, jsilhan, mluscon, packaging-team-maint, pnemade, rholy, tim.lauridsen
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-10-27 11:00:37 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 Steve Bryant 2014-10-26 11:13:47 UTC
Description of problem:
"dnf install pythonqt.x86_64" identified the following packages to be installed:

 pythonqt     x86_64  2.1-3.fc20                           fedora         2.4 M
 qtwebkit     x86_64  2.3.3-7.fc20                         updates         10 M
 qt-mobility  x86_64  1.2.2-0.5.20120224git.fc20           fedora         3.0 M

Immediately afterwards, "dnf upgrade" found an upgrade to "qt-mobility" (which also had a number of dependencies):

 qt-mobility  x86_64  1.2.2-0.16.20140317git169da60c.fc20  updates        7.6 k

Version-Release number of selected component (if applicable):
dnf-0.5.4-2.fc20.noarch

How reproducible:


Steps to Reproduce:
1. dnf install pythonqt.x86_64
2. dnf upgrade
3.

Actual results:
 "dnf install" selected qt-mobility-1.2.2-0.5.20120224git.fc20.x86_64 as a dependency from the "Fedora 20 - x86_64" repository.

Expected results:
 qt-mobility-1.2.2-0.16.20140317git169da60c.fc20.x86_64 installed from "Fedora 20 - x86_64 - Updates" as a dependency, without the need for a subsequent "dnf update".

Additional info:
Looks like "dnf install" is not deciding correctly which is the later release version out of "0.5" and "0.16".

Comment 1 Honza Silhan 2014-10-27 11:00:37 UTC
Please, execute `dnf upgrade --best`*. If it succesfully proceeds and still selects lower version then reopen the bug.

* `--best` will select the highest versions of all packages. It probably outputs error. Dnf without `--best` tries to find the solution without dependency problems (as yum's --skipbroken).