Bug 189661 - "yum remove <pkg>" doesn't remove dependencies
Summary: "yum remove <pkg>" doesn't remove dependencies
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: yum
Version: 5
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Jeremy Katz
QA Contact:
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2006-04-22 08:32 UTC by James Hunt
Modified: 2014-01-21 22:54 UTC (History)
1 user (show)

(edit)
Clone Of:
(edit)
Last Closed: 2006-04-24 17:20:22 UTC


Attachments (Terms of Use)

Description James Hunt 2006-04-22 08:32:19 UTC
Description of problem:

Running "yum remove <pkg>" doesn't clean up the dependencies for <pkg>.

Version-Release number of selected component (if applicable):

yum-2.6.0-1

How reproducible:

Always.

Steps to Reproduce:
1. Ensure xemacs not installed.
2. yum -y install xemacs
This installs the following packages, due to xemacs dependencies:

Canna-libs
FreeWnn-libs
neXtaw
xemacs
xemacs-common
xemacs-sumo

3. yum remove xemacs
  
Actual results:

The xemacs package is removed. However, the following packages are not removed,
even though clearly they are not required by any other package on the system:

Canna-libs
FreeWnn-libs
neXtaw
xemacs-common
xemacs-sumo

Expected results:

I would have expected all the packages that xemacs depends on, and which are not
required by other packages, to be removed.

Additional info:

Comment 1 Jeremy Katz 2006-04-24 17:20:22 UTC
yum remove <pkg> does remove all things that depend on package, but not vice
versa as there's no real way to know that nothing else on the system (including
things built or installed by hand) don't depend on them.

If you install the yum-utils package, there is a utility called package-cleanup
which can help you to find leaf node packages and remove them.


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