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.
I.e. alias for: dnf repoquery --disablerepo=\* --enablerepo=SRC --arch=src --whatrequires PKG
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.
$ dnf repoquery --repo=fedora-rawhide --arch src --whatrequires PKG in DNF 2.0, but agree that it should be documented.
Update, this works on dnf 1.1.10: $ dnf repoquery --disablerepo=\* --enablerepo=rawhide-source --arch=src --whatrequires PKG
and about query Exclusivearch tag ?
# dnf repoquery --disablerepo=\* --enablerepo=rawhide-source --arch=src --whatrequires python3-pkgversion-macros Traceback (most recent call last): File "/usr/bin/dnf", line 58, in <module> main.user_main(sys.argv[1:], exit_code=True) File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 179, in user_main errcode = main(args) File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 64, in main return _main(base, args, cli_class, option_parser_class) File "/usr/lib/python3.6/site-packages/dnf/cli/main.py", line 95, in _main cli.configure(list(map(ucd, args)), option_parser()) File "/usr/lib/python3.6/site-packages/dnf/cli/cli.py", line 878, in configure self.base.conf._configure_from_options(opts) File "/usr/lib/python3.6/site-packages/dnf/conf/config.py", line 843, in _configure_from_options setattr(self, name, value) File "/usr/lib/python3.6/site-packages/dnf/conf/config.py", line 908, in arch assert(val in dnf.rpm._BASEARCH_MAP.keys()) AssertionError dnf-2.6.2-3.fc27.noarch
The problem presented in Comment 6 was solved in dnf-2.6.3-1 .
I created a patch with enhanced documentation: https://github.com/rpm-software-management/dnf/pull/1113