Red Hat Bugzilla – Bug 465414
yum-remove-with-leaves should be made into a commandline option
Last modified: 2014-01-21 18:06:13 EST
Description of problem:
The yum-remove-with-leaves plugin is too aggressive and should be made into a commandline option so that it is not enabled by default if installed: it practically makes yum unusable.
Steps to Reproduce:
1. yum install yum-*
2. yum upgrade
2. yum-remove-with-leaves starts trying to suggest removing lots of leaf packages, etc
2. no packages to be removed by default.
So, We can make it an option, but there are two things here:
1. the problem you saw with an update trying to remove things has been fixed in upstream. It was a bug w/how remove-with-leaves looked up what was being removed.
2. yum --disable-plugin=remove-with-leaves update
is the equivalent to disabling the option.
Do we actually need another option?
(In reply to comment #1)
> 1. the problem you saw with an update trying to remove things has been fixed in
> upstream. It was a bug w/how remove-with-leaves looked up what was being
> Do we actually need another option?
If it is safe to enable it by default then maybe not.
For me its unsafe, too!!
I just wanted to update my system, but the plugin tries to erase packages, needed by the packages to update.
Maybe, it thinks, that the packages to be updated, are not installed on the system, so the dependencies are not needed anymore, and will be deleted…
Definitely a bug. If this can be solved, it can stay, but to split remove-leaves from update, will be a nicer and easier solution.
we've already fixed the bug you noticed. So, it shouldn't be a problem.
This bug appears to have been reported against 'rawhide' during the Fedora 10 development cycle.
Changing version to '10'.
More information and reason for this action is here:
i have changed the plugin to only be active if '--remove-leaves' is added to the commandline or 'remove_always=1' is added to the plugin conf file.
It will be available in next release of yum-utils
you can test it by getting this file
and copy it into /usr/lib/yum-plugins/