Red Hat Bugzilla – Bug 1266178
dnf repoquery --installed overrides --whatrequires
Last modified: 2015-11-23 04:46:05 EST
Description of problem:
After upgrading to the F23 beta, I wanted to check how many local packages were still relying on Python 2.7 vs 3.4. However, combining "--installed" with "--whatrequires" in dnf repoquery appears to be broken (more details below)
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. run 'sudo dnf repoquery --installed | wc -l'
2. run 'sudo dnf repoquery --alldeps --whatrequires 'python3' --installed | wc -l'
3. run 'sudo dnf repoquery --alldeps --whatrequires 'python' --installed | wc -l'
All 3 commands report the same number (2620 in my case)
Latter two numbers are less than the total number of installed packages, and less than or equal to the results that come up when searching the full repo metadata:
$ sudo dnf repoquery --alldeps --whatrequires 'python3' | wc -l
$ sudo dnf repoquery --alldeps --whatrequires 'python' | wc -l
System was upgraded from F22 using the dnf-system-upgrade-plugin as the fedup implementation.
we will fix it.
Fixed in dnf-plugins-core-0.1.14-1.