Bug 477503 - Yum does not support removing unneeded dependencies.
Yum does not support removing unneeded dependencies.
Status: CLOSED NOTABUG
Product: Fedora
Classification: Fedora
Component: yum (Show other bugs)
10
i386 Linux
low Severity medium
: ---
: ---
Assigned To: Seth Vidal
Fedora Extras Quality Assurance
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2008-12-21 00:02 EST by Richard
Modified: 2014-01-21 18:07 EST (History)
5 users (show)

See Also:
Fixed In Version: All
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2008-12-21 02:36:26 EST
Type: ---
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 Richard 2008-12-21 00:02:51 EST
Description of problem:
Yum does not support removing unneeded dependencies. 

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

How reproducible:
This reproducible with installation of most packages that requires 1 or more dependencies.


Steps to Reproduce:
1.`yum install xorg-x11-server-devel`
The following output is produced.
Running Transaction
  Installing     : libpciaccess-devel                       1/10 
  Installing     : xorg-x11-util-macros                     2/10 
  Installing     : pixman-devel                             3/10 
  Installing     : libxcb-devel                             4/10 
  Installing     : libXau-devel                             5/10 
  Installing     : xorg-x11-proto-devel                     6/10 
  Installing     : libXdmcp-devel                           7/10 
  Installing     : xorg-x11-server-devel                    8/10 
  Installing     : mesa-libGL-devel                         9/10 
  Installing     : libX11-devel                             10/10

2. `yum remove xorg-x11-server-devel`
The following is produced.
Erasing          : xorg-x11-server-devel                    1/1

Additional info:
With the package yum-remove-with-leaves-1.1.18-2.fc10.noarch
 installed, the following output is produced with `yum remove x11-xorg-server-devel`:

  Erasing        : xorg-x11-filesystem                      1/5 
  Erasing        : pixman-devel                             2/5 
  Erasing        : libpciaccess-devel                       3/5 
  Erasing        : xorg-x11-util-macros                     4/5 
  Erasing        : xorg-x11-server-devel                    5/5 

Which is still not all the packages that were installed.

There should be a similar feature to `apt-get autoremove` that removes all unneeded packages with removed installation.
Comment 1 James Antill 2008-12-21 02:36:26 EST
yum install yum-remove-with-leaves

...although I don't recommend it.
Comment 2 seth vidal 2008-12-21 10:06:55 EST
To add to what James said:

remove-with-leaves works pretty well for most cases, there are occasions where it can have some surprising results depending on how deep you start to remove things.

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