Red Hat Bugzilla – Bug 1186689
RFE: make dnf repoquery --whatrequires behave like yum based repoquery (add --alldeps support)
Last modified: 2015-10-02 05:05:29 EDT
I'm trying to fully switch to dnf, and to learn to type "dnf repoquery", instead of "repoquery".
The old repoquery has a --alldeps option for use with --whatrequires, and now a days this is enabled by default. What this does is if the passed in argument is a package name, do "rpm -q --provides" on the package and then run --whatrequires on all the deps listed by --provides. This is much more useful then the old behavior without --alldeps.
E.g. today I heard that audiofile was being orphaned, so I did:
[hans@shalem ~]$ sudo dnf repoquery --whatrequires audiofile
Hmm, that can't be right:
[hans@shalem ~]$ sudo rpm -e audiofile audiofile-devel
error: Failed dependencies:
libaudiofile.so.1()(64bit) is needed by (installed) arts-8:1.5.10-26.fc21.x86_64
libaudiofile.so.1()(64bit) is needed by (installed) esound-libs-1:0.2.41-12.fc21.x86_64
See, not right.
Where as the old repoquery gives:
[hans@shalem ~]$ sudo repoquery --whatrequires audiofile
As it also effectively does "repoquery --whatrequires 'libaudiofile.so.1()(64bit)'" (and more like that).
Note this is different from bug 1156778 which is about dnf repoquery sometimes returning too much, this is the opposite.
Here is my use-case to reproduce
$ sudo dnf repoquery --whatrequires nodejs-nan
==> No Output
$ sudo repoquery --whatrequires nodejs-nan
Thanks for the report we will take a look.
dnf repoquery --whatrequires is pretty useless without this.
dnf-plugins-core-0.1.9-1.fc22 has been submitted as an update for Fedora 22.
* should fix your issue,
* was pushed to the Fedora 22 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing dnf-plugins-core-0.1.9-1.fc22'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).
dnf-plugins-core-0.1.9-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
The problem still exists as per Parag's Comment 1
I have dnf-1.1.1-2.fc22.noarch
we fixed this be newly added cmd option --alldeps. Please see http://dnf-plugins-core.readthedocs.org/en/latest/repoquery.html .
(In reply to Michal Luscon from comment #8)
> we fixed this be newly added cmd option --alldeps. Please see
> http://dnf-plugins-core.readthedocs.org/en/latest/repoquery.html .
In yum's repoquery --alldeps was on by default, you may want to do the same in dnf, as --alldeps typically is what people actually want.