Bug 1467304 - RFE: --disableplugin should print error/warning on non-existing plugin
RFE: --disableplugin should print error/warning on non-existing plugin
Status: NEW
Product: Fedora
Classification: Fedora
Component: dnf (Show other bugs)
26
Unspecified Unspecified
unspecified Severity unspecified
: ---
: ---
Assigned To: Martin Hatina
Fedora Extras Quality Assurance
: FutureFeature, Reopened, Triaged, UserExperience
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2017-07-03 06:58 EDT by srakitnican
Modified: 2017-07-04 07:16 EDT (History)
4 users (show)

See Also:
Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2017-07-03 07:00:03 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 srakitnican 2017-07-03 06:58:46 EDT
Description of problem: 
$ rpm -q dnf
dnf-2.4.1-1.fc26.noarch
dnf-2.5.1-1.fc26.noarch
$ sudo dnf --disableplugin=protected_packages remove dnf-2.5.1-1.fc26.noarch
Error: 
 Problem: The operation would result in removing the following protected packages: dnf


Additional info: This system failed to upgrade most likely because of libdb issue, bug #1465292 .
Comment 1 Igor Gnatenko 2017-07-03 07:00:03 EDT
it is not a plugin....


Use `--setopt=protected_packages=`
Comment 2 srakitnican 2017-07-03 07:26:02 EDT
So that functionality changed with dnf 2? Thank you.

On a side note, it would be nice if dnf would show some message if plugin is invalid, considering that protected_packages is no longer a plugin?

$ sudo dnf --disableplugin=non_existent_plugin remove dnf 
Error: 
 Problem: The operation would result in removing the following protected packages: dnf

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