Bug 465414 - yum-remove-with-leaves should be made into a commandline option
Summary: yum-remove-with-leaves should be made into a commandline option
Keywords:
Status: CLOSED UPSTREAM
Alias: None
Product: Fedora
Classification: Fedora
Component: yum-utils
Version: 10
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Seth Vidal
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2008-10-03 07:00 UTC by Jens Petersen
Modified: 2014-01-21 23:06 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-03-05 15:42:25 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Jens Petersen 2008-10-03 07:00:39 UTC
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
  
Actual results:
2. yum-remove-with-leaves starts trying to suggest removing lots of leaf packages, etc

Expected results:
2. no packages to be removed by default.

Comment 1 seth vidal 2008-10-03 13:52:39 UTC
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?

Comment 2 Jens Petersen 2008-10-06 02:05:05 UTC
(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
> removed.

Cool

> Do we actually need another option?

If it is safe to enable it by default then maybe not.

Comment 3 Thomas Spura 2008-10-16 21:26:02 UTC
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.

Comment 4 seth vidal 2008-10-17 02:03:39 UTC
we've already fixed the bug you noticed. So, it shouldn't be a problem.

Comment 5 Bug Zapper 2008-11-26 03:29:48 UTC
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:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 6 Tim Lauridsen 2009-03-05 12:30:41 UTC
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
http://yum.baseurl.org/gitweb?p=yum-utils.git;a=blob_plain;f=plugins/remove-with-leaves/remove-with-leaves.py;hb=5fe8db1bffd48f8000cedebeffea7c2f56dffb41

and copy it into /usr/lib/yum-plugins/


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