Bug 1694041

Summary: dnf list plugins command missing
Product: Red Hat Enterprise Linux 8 Reporter: Pavel Moravec <pmoravec>
Component: dnfAssignee: Jaroslav Mracek <jmracek>
Status: CLOSED WONTFIX QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: medium Docs Contact:
Priority: medium    
Version: ---CC: james.antill, peter, pkratoch
Target Milestone: rcKeywords: Triaged
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2019-07-02 18:14:11 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Pavel Moravec 2019-03-29 10:58:30 UTC
Description of problem:
(derived from bz1643473)

dnf has plugin options

--noplugins
--enableplugin [plugin]
--disableplugin [plugin]

But there is no way to get a list of plugins. How an user can know what plugins to enable or disable, then?

Please implement a "dfn plugin list" like subcommand, that will list all plugins with:
- plugin name
- a short description
- if it is enabled or disabled now / by default

(optionally, it might be useful to be able to filter that list by enabled or by disabled plugins only - leaving on devels to decide)


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


How reproducible:
100%


Steps to Reproduce:
1. dnf --help | grep plugins
2. dnf plugin list


Actual results:
1. does not mention "plugin list" subcommand exists
2. the subcommand does not exist


Expected results:
1. there is such a subcommand


Additional info:

Comment 1 Jaroslav Mracek 2019-07-01 06:59:07 UTC
The information is provided for nearly all command with "-v" option. See:

Loaded plugins: builddep, changelog, config-manager, copr, debug, debuginfo-install, download, generate_completion_cache, needs-restarting, playground, product-id, repoclosure, repodiff, repograph, repomanage, reposync, subscription-manager, uploadprofile
Updating Subscription Management repositories.
DNF version: 4.2.7

Do you consider the bug report as a resolved?

Comment 2 Pavel Moravec 2019-07-02 11:30:35 UTC
(In reply to Jaroslav Mracek from comment #1)
> The information is provided for nearly all command with "-v" option. See:
> 
> Loaded plugins: builddep, changelog, config-manager, copr, debug,
> debuginfo-install, download, generate_completion_cache, needs-restarting,
> playground, product-id, repoclosure, repodiff, repograph, repomanage,
> reposync, subscription-manager, uploadprofile
> Updating Subscription Management repositories.
> DNF version: 4.2.7
> 
> Do you consider the bug report as a resolved?

How can I get list of disabled plugins? Or all of them? This list "just" enabled ones, no?

(well maybe one might do a trick with 'dnf updateinfo --enableplugin="*" -v' and comparing with 'dnf updateinfo -v'  (updateinfo can be replaced by any subcmd), but that sounds rather a workaround trick than user-convenient solution; anyway for my personal purposes it is sufficient - if devels think so as well I am ok in closing the BZ in favour of fixing more important issues with dnf)

Comment 3 Jaroslav Mracek 2019-07-02 18:14:11 UTC
Thanks for understanding.

Comment 4 Peter Ajamian 2021-07-10 03:38:02 UTC
It would be nice to have this feature eventually, but I would agree that it's very low priority at best.  Would it be appropriate to reopen this ticket but change it to Fedora Rawhide DNF, get it added there, and let it eventually trickle down to a future release of RHEL?