Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1161067 - [RFE] add listnames option to "dnf --cacheonly"
Summary: [RFE] add listnames option to "dnf --cacheonly"
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-11-06 10:22 UTC by Parag Nemade
Modified: 2014-11-10 15:21 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2014-11-10 15:09:43 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1151231 0 medium CLOSED Broken bash completion (does not occur when dnf-plugins-core installed) 2022-05-16 11:32:56 UTC

Internal Links: 1151231

Description Parag Nemade 2014-11-06 10:22:15 UTC
Description of problem:
As it is decided already that dnf-plugins-core remain optional, bash completion failure bugs are coming regularly. What I propose in addition to proposed fix https://github.com/rpm-software-management/dnf/pull/168 is to enhance command option "dnf --cacheonly list" by adding another option as "dnf --cacheonly listnames" which will just pick package names. 

Thus, I feel we can fix this bash completion issues.

Version-Release number of selected component (if applicable):
dnf-0.6.2-1.fc21.noarch

Additional Info:
$sudo dnf --cacheonly list
Installed Packages
389-adminutil.x86_64                   1.1.19-4.fc21             @System        
389-adminutil-devel.x86_64             1.1.19-4.fc21             @System        
CharLS.x86_64                          1.0-8.fc21                @System        
ConsoleKit.x86_64                      0.4.5-9.fc21              @System        
ConsoleKit-libs.x86_64                 0.4.5-9.fc21              @System     
....
....


With new option it should print only
$sudo dnf --cacheonly listnames
Installed Packages
389-adminutil        
389-adminutil-devel
CharLS
ConsoleKit
ConsoleKit-libs
....

Comment 1 Honza Silhan 2014-11-10 15:09:43 UTC
Parag, personaly I don't like adding new commands. Bug #1160806 should be solved other way. The output of "dnf --cacheonly list" can be transformed to result of your command using system utils. Or am I missing something?

Comment 2 Parag Nemade 2014-11-10 15:15:01 UTC
I tried to fix this bash-completion but without what requested here and no dnf-plugins-core installed, its difficult. I think you want to give some other bug reference in above comment as bug1160806 is irrelevant to this bug.

Anyway, I am going to increase the priority of bug 1151231 as we saw may people reporting it now.


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