Bug 1199601 - RFE: repoquery support for --pkgnarrow
RFE: repoquery support for --pkgnarrow
Status: CLOSED NEXTRELEASE
Product: Fedora
Classification: Fedora
Component: dnf-plugins-core (Show other bugs)
rawhide
Unspecified Unspecified
medium Severity unspecified
: ---
: ---
Assigned To: packaging-team-maint
Fedora Extras Quality Assurance
:
: 1226493 1248797 (view as bug list)
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2015-03-06 12:44 EST by Jerry James
Modified: 2015-09-23 00:13 EDT (History)
9 users (show)

See Also:
Fixed In Version: 1.1.1-2.fc23
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2015-09-09 19:19:13 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Jerry James 2015-03-06 12:44:50 EST
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:
Comment 1 Honza Silhan 2015-03-11 11:19:03 EDT
Thanks for the report. I would prefer to extend `--arch` to accept more than one architecture than implement new switch.
Comment 2 Toshio Ernie Kuratomi 2015-05-21 05:01:12 EDT
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.
Comment 3 Honza Silhan 2015-07-14 05:58:24 EDT
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.
Comment 4 Honza Silhan 2015-07-21 05:44:57 EDT
* The archlist part is tracked in bug 1186381
Comment 5 Honza Silhan 2015-07-24 05:15:24 EDT
*** Bug 1226493 has been marked as a duplicate of this bug. ***
Comment 6 Honza Silhan 2015-08-28 05:20:02 EDT
*** Bug 1248797 has been marked as a duplicate of this bug. ***
Comment 7 Fedora Update System 2015-09-01 05:52:11 EDT
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
Comment 8 Fedora Update System 2015-09-01 16:22:42 EDT
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
Comment 9 Fedora Update System 2015-09-08 08:38:33 EDT
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
Comment 10 Fedora Update System 2015-09-08 08:38:44 EDT
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
Comment 11 Fedora Update System 2015-09-08 08:40:05 EDT
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
Comment 12 Fedora Update System 2015-09-08 13:52:02 EDT
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
Comment 13 Fedora Update System 2015-09-08 17:26:06 EDT
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
Comment 14 Fedora Update System 2015-09-09 19:18:46 EDT
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.
Comment 15 Fedora Update System 2015-09-23 00:12:19 EDT
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.

Note You need to log in before you can comment on or make changes to this bug.