Description of problem: Running certain repoquery queries on repositories with packages with arches differing from your basearch yields no results even though it, IMO, should. Example: % dnf repoquery --repofrompath='test,http://secondary.fedoraproject.org/pub/fedora-secondary/releases/test/26_Alpha/Everything/aarch64/os/' --repo=test --provides zlib Added test repo from http://secondary.fedoraproject.org/pub/fedora-secondary/releases/test/26_Alpha/Everything/aarch64/os/ Last metadata expiration check: 0:15:27 ago on Wed Apr 19 11:24:57 2017 CEST. libz.so.1()(64bit) (...) % % dnf repoquery --repofrompath='test,http://secondary.fedoraproject.org/pub/fedora-secondary/releases/test/26_Alpha/Everything/aarch64/os/' --repo=test --whatprovides 'libz.so.1()(64bit)' Added test repo from http://secondary.fedoraproject.org/pub/fedora-secondary/releases/test/26_Alpha/Everything/aarch64/os/ Last metadata expiration check: 0:15:50 ago on Wed Apr 19 11:24:57 2017 CEST. (...nothing...) As far as I can tell, this cannot be overridden in any way. This affects all kinda of queries, including the very useful --requires --resolve combo. Bug #1438304 is somewhat related but it's about the Python API. Version-Release number of selected component (if applicable): dnf-2.3.0-1.fc26.noarch How reproducible: Always
Note yum-utils repoquery works fine if you specify the desired arches with the --arch option. It has no effect in dnf repoquery. % repoquery --repofrompath='test,http://secondary.fedoraproject.org/pub/fedora-secondary/releases/test/26_Alpha/Everything/aarch64/os/' --repoid=test --arch aarch64,noarch --whatprovides 'libz.so.1()(64bit)' Yum-utils package has been deprecated, use dnf instead. See 'man yum2dnf' for more information. zlib-0:1.2.11-2.fc26.aarch64 % dnf repoquery --repofrompath='test,http://secondary.fedoraproject.org/pub/fedora-secondary/releases/test/26_Alpha/Everything/aarch64/os/' --repo=test --arch aarch64,noarch --whatprovides 'libz.so.1()(64bit)' Added test repo from http://secondary.fedoraproject.org/pub/fedora-secondary/releases/test/26_Alpha/Everything/aarch64/os/ Last metadata expiration check: 0:39:14 ago on Wed Apr 19 11:24:57 2017 CEST. (...nothing)
https://github.com/rpm-software-management/dnf/pull/787
I think that the functionality requested here was provided by pull-request https://github.com/rpm-software-management/dnf/pull/866 that is part of dnf-2.6.2-1 .