Bug 1465399

Summary: [RFE] repoquery should support a query Exclusivearch and ExcludeArch tag
Product: [Fedora] Fedora Reporter: Sergio Basto <sergio>
Component: dnf-plugins-coreAssignee: rpm-software-management
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: medium    
Version: rawhideCC: extras-qa, jmracek, jskarvad, mluscon, olysonek, packaging-team-maint, pnemade, RadekHolyPublic, rpm-software-management, sergio, torsava, vmukhame
Target Milestone: ---Keywords: Documentation, FutureFeature, Triaged, UserExperience
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Enhancement
Doc Text:
Story Points: ---
Clone Of: 1361617 Environment:
Last Closed: 2017-06-27 12:01:22 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:
Bug Depends On: 1361617    
Bug Blocks:    

Description Sergio Basto 2017-06-27 11:59:32 UTC
+++ This bug was initially created as a clone of Bug #1361617 +++

Description of problem:
It would be nice to have an option for dnf repoquery, that would list all packages which require a given package during build.

--- Additional comment from Jaroslav Škarvada on 2016-07-29 15:20:58 WEST ---

I.e. alias for:
 dnf repoquery --disablerepo=\* --enablerepo=SRC --arch=src --whatrequires PKG

--- Additional comment from Jaroslav Škarvada on 2016-07-29 15:23:18 WEST ---

I could be called --whatbuildrequires, etc.

The above example is not straightforward and it is not easy to find it. At least it should be present in the dnf.plugin.repoquery manual page examples.

--- Additional comment from Igor Gnatenko on 2016-07-29 15:25:35 WEST ---

$ dnf repoquery --repo=fedora-rawhide --arch src --whatrequires PKG

in DNF 2.0, but agree that it should be documented.

--- Additional comment from Tomas Orsava on 2017-01-25 16:34:21 WET ---

Update, this works on dnf 1.1.10:

$ dnf repoquery --disablerepo=\* --enablerepo=rawhide-source --arch=src --whatrequires PKG

--- Additional comment from Sergio Monteiro Basto on 2017-03-18 19:43:43 WET ---

and about query Exclusivearch tag ?

Comment 1 Igor Gnatenko 2017-06-27 12:01:22 UTC
Please, open new bug instead of cloning.