Bug 1403930

Summary: dnf repoquery -f with multiple files doesn't seem to work
Product: [Fedora] Fedora Reporter: Zbigniew JÄ™drzejewski-Szmek <zbyszek>
Component: dnfAssignee: rpm-software-management
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: medium    
Version: rawhideCC: jmracek, mluscon, packaging-team-maint, rpm-software-management, vmukhame
Target Milestone: ---Keywords: Triaged
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-02-10 16:03:03 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 Zbigniew Jędrzejewski-Szmek 2016-12-12 16:15:39 UTC
Description of problem:
When querying multiple files (for example to check if any file in a list of files conflicts with a different package), dnf repoquery doesn't seem to provide a way to query multiple files at once. Doing it one-by-one is obviously rather slow.

Version-Release number of selected component (if applicable):
dnf-2.0.0-0.rc2.3.fc26.noarch

Actual results:
$ dnf repoquery -f /usr/bin/test /usr/bin/convert
(nada)

Expected results:
$ dnf repoquery -f /usr/bin/test /usr/bin/convert
coreutils-...
ImageMagick-...

Comment 1 Honza Silhan 2016-12-19 12:19:57 UTC
FTR yum repoquery behaves as expected result in this report. We should fix it in DNF repoquery. For now you can use "dnf repoquery -f /usr/bin/test -f /usr/bin/convert" work around.

Comment 2 Jaroslav Mracek 2016-12-20 14:50:11 UTC
Created a pull-request that should solve the issue: https://github.com/rpm-software-management/dnf/pull/692

Comment 3 Jaroslav Mracek 2017-02-10 16:03:03 UTC
Bug fixed in version of dnf-2.0.1-1.