Description of problem: I'm trying to port some yum-based scripts I use over to dnf and stumbled across the lack of --pkgnarrow support in dnf's version of repoquery. Please consider adding this. For example, I use this when I want to search through packages I don't have installed for a particular capability. The --archlist argument (instead of the existing --arch) is also useful. That lets me combine searches for, say, x86_64 and noarch packages together without needing to see results for multiarch (i686) packages. By the way, I'll sneak a tiny typo note in here. The package description starts with "Core Plugins for DNF. This package enhance DNF with builddep, copr,". That should be "enhances", not "enhance". Version-Release number of selected component (if applicable): dnf-plugins-core-0.1.5-1.fc22.noarch python3-dnf-plugins-core-0.1.5-1.fc22.noarch How reproducible: Always Steps to Reproduce: 1. This works: repoquery --pkgnarrow=available --archlist=x86_64,noarch '*' 2. This doesn't: dnf repoquery --pkgnarrow=available --arch=x86_64,noarch Actual results: Error: unrecognized arguments: --pkgnarrow=available Also, if the --pkgnarrow argument is omitted, dnf treats the string "x86_64,noarch" as an arch, and hence produces an empty list. This means that separate queries for x86_64 and noarch are necessary. Expected results: Comparable results to the yum-based repoquery's output. Additional info:
Thanks for the report. I would prefer to extend `--arch` to accept more than one architecture than implement new switch.
Any thoughts on --pkgnarrow? I found a piece of code that needed it today so that I could run separate queries for installed packages (simulated with raw rpm instead), updates (why I needed pkgnarrow), and anything available.
Toshio, it's not implemented yet. `--pkgnarrow` switch name seems to me strange. `--updates`, `--installed`, etc. mutually exclusive options would fit better with `dnf list` command.
* The archlist part is tracked in bug 1186381
*** Bug 1226493 has been marked as a duplicate of this bug. ***
*** Bug 1248797 has been marked as a duplicate of this bug. ***
dnf-plugins-core-0.1.11-1.fc23 dnf-1.1.1-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-14743
dnf-1.1.1-1.fc23, dnf-plugins-core-0.1.11-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update dnf dnf-plugins-core'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-14743
dnf-1.1.1-2.fc22 dnf-plugins-core-0.1.11-1.fc22 has been submitted as an update to Fedora 22. https://bodhi.fedoraproject.org/updates/FEDORA-2015-14744
dnf-1.1.1-2.fc23 dnf-plugins-core-0.1.11-1.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-14743
dnf-1.1.1-2.fc23, dnf-plugins-core-0.1.11-1.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update dnf dnf-plugins-core'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-14743
dnf-1.1.1-2.fc22, dnf-plugins-core-0.1.11-1.fc22 has been pushed to the Fedora 22 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update dnf-plugins-core dnf'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-14744
dnf-1.1.1-2.fc22, dnf-plugins-core-0.1.11-1.fc22 has been pushed to the Fedora 22 stable repository. If problems still persist, please make note of it in this bug report.
dnf-1.1.1-2.fc23, dnf-plugins-core-0.1.11-1.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.