Bug 1226677 - dnf repoquery -f does not support wildcards
dnf repoquery -f does not support wildcards
Status: CLOSED RAWHIDE
Product: Fedora
Classification: Fedora
Component: dnf-plugins-core (Show other bugs)
23
Unspecified Unspecified
low Severity unspecified
: ---
: ---
Assigned To: rpm-software-management
Fedora Extras Quality Assurance
: EasyFix, Triaged
: 1269731 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-05-31 13:51 EDT by Zbigniew Jędrzejewski-Szmek
Modified: 2016-10-04 14:07 EDT (History)
10 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2016-07-21 09:05:30 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Zbigniew Jędrzejewski-Szmek 2015-05-31 13:51:55 EDT
Description of problem:
Might be PEBKAC, but it seems that dnf repoquery cannot be used to look for files in a certain directory.

$ dnf repoquery -f /etc/udev/rules.d/\*
(nada)
$ repoquery -f /etc/udev/rules.d/\*
(42 packages listed)

For me this is one of the most common uses of repoquery. E.g. https://fedorahosted.org/fesco/ticket/615#comment:43.

Version-Release number of selected component (if applicable):
dnf-1.0.0-1.fc23.noarch
yum-utils-1.1.31-505.fc23.noarch
yum-3.4.3-506.fc23.noarch
Comment 1 Sergio Monteiro Basto 2015-06-18 17:05:45 EDT
dnf repoquery doesn't  support also muti args 

dnf repoquery python-bottle-sqlite python-sqlite3dbm

Error: unrecognized arguments: python-sqlite3dbm

repoquery python-bottle-sqlite python-sqlite3dbm 
python-bottle-sqlite-0:0.1-4.fc21.noarch
python-sqlite3dbm-0:0.1.4-6.fc21.noarch
Comment 2 Ville Skyttä 2015-06-19 04:58:49 EDT
(In reply to Sergio Monteiro Basto from comment #1)
> dnf repoquery doesn't  support also muti args

Different issue, different bug, please.
Comment 3 Zbigniew Jędrzejewski-Szmek 2015-06-19 08:39:29 EDT
Second bug for second issue.
Comment 4 Jan Kurik 2015-07-15 10:05:09 EDT
This bug appears to have been reported against 'rawhide' during the Fedora 23 development cycle.
Changing version to '23'.

(As we did not run this process for some time, it could affect also pre-Fedora 23 development
cycle bugs. We are very sorry. It will help us with cleanup during Fedora 23 End Of Life. Thank you.)

More information and reason for this action is here:
https://fedoraproject.org/wiki/BugZappers/HouseKeeping/Fedora23
Comment 5 Sergio Monteiro Basto 2015-07-15 19:43:51 EDT
 wildcards also fails with --whatrequires 

dnf repoquery --whatrequires pyorbit\*
none 

repoquery --whatrequires pyorbit\*
at-spi-python-0:1.32.0-14.fc21.x86_64
gnome-python2-bonobo-0:2.28.1-15.fc21.x86_64
pyorbit-devel-0:2.24.0-16.fc21.i686
pyorbit-devel-0:2.24.0-16.fc21.x86_64
Comment 6 Honza Silhan 2015-07-24 05:25:16 EDT
Thanks for the report, we'll take a look. `dnf whatprovides <glob-in-filename>` should work - use it as temporary workaround.
Comment 7 Radek Holy 2015-07-24 05:30:29 EDT
Rather "dnf provides". "whatprovides" is an undocumented alias. And it still work only for globs in file names, not in (virtual) provides.
Comment 8 Zbigniew Jędrzejewski-Szmek 2015-07-24 09:17:09 EDT
Indeed, that works, and even gives the same results as plain repoquery.
Comment 9 Sergio Monteiro Basto 2015-07-24 09:29:43 EDT
Hi
(In reply to Radek Holy from comment #7)
> Rather "dnf provides". "whatprovides" is an undocumented alias. And it still
> work only for globs in file names, not in (virtual) provides.

Please, could you exemplify with pyorbit\* ? I don't understood  what you wrote .

man repoquery  (the old repoquery) , --provides and --requires are PACKAGE QUERY OPTIONS when --whatprovides and --whatrequires are PACKAGE SELECTION OPTIONS
Comment 10 Radek Holy 2015-07-24 10:01:37 EDT
Sergio,

I meant that as the workaround, Zbigniew should use e.g. `dnf provides /etc/udev/rules.d/\*` rather than `dnf whatprovides /etc/udev/rules.d/\*` since both are the same but the latter one is not documented.

And then I meant that `dnf provides /etc/udev/rules.d/\*` works as expected but OTOH it still cannot help you, Sergio, because `dnf provides pyorbit\*` does not work either. We have no workaround for you since both commands ("repoquery" and "provides") are broken in this regard. They cannot find provides specified by a glob expression, only files.
Comment 11 Fedora Admin XMLRPC Client 2016-07-08 05:25:29 EDT
This package has changed ownership in the Fedora Package Database.  Reassigning to the new owner of this component.
Comment 12 Igor Gnatenko 2016-07-21 09:05:30 EDT
https://github.com/rpm-software-management/dnf/pull/528

Fixed in DNF 2.0.
Comment 13 Igor Gnatenko 2016-07-22 04:52:47 EDT
*** Bug 1269731 has been marked as a duplicate of this bug. ***

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