Bug 532185

Summary: --remove-leaves doesn't remove all original dependencies of python-mwlib
Product: [Fedora] Fedora Reporter: Christopher Beland <beland>
Component: yum-utilsAssignee: Seth Vidal <skvidal>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: 11CC: ffesti, james.antill, maxamillion, pmatilai, tim.lauridsen
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2009-11-02 14:51:17 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Christopher Beland 2009-10-31 06:01:58 UTC
"yum install python-mwlib python-mwlib-debuginfo" produces:

Installing:
 python-mwlib              i586      0.9.10-2.fc11    fedora              749 k
 python-mwlib-debuginfo    i586      0.9.10-2.fc11    fedora-debuginfo    221 k
Installing for dependencies:
 kpathsea                  i586      2007-46.fc11     updates-testing     118 k
 odfpy                     noarch    0.8-3.fc11       fedora              264 k
 pyparsing                 noarch    1.5.0-4.fc11     fedora              781 k
 python-flup               noarch    1.0-4.fc11       fedora              120 k
 tex-preview               noarch    11.85-8.fc11     fedora               54 k
 texlive                   i586      2007-46.fc11     updates-testing     1.9 M
 texlive-dvips             i586      2007-46.fc11     updates-testing     190 k
 texlive-latex             i586      2007-46.fc11     updates-testing      81 k
 texlive-texmf-latex       noarch    2007-31.fc11     updates-testing     6.1 M
 texlive-utils             i586      2007-46.fc11     updates-testing     218 k

"yum remove python-mwlib python-mwlib-debuginfo --remove-leaves" produces:

Removing:
 odfpy                      noarch     0.8-3.fc11           installed     1.4 M
 pyparsing                  noarch     1.5.0-4.fc11         installed     4.1 M
 python-flup                noarch     1.0-4.fc11           installed     494 k
 python-mwlib               i586       0.9.10-2.fc11        installed     3.4 M
 python-mwlib-debuginfo     i586       0.9.10-2.fc11        installed     998 k

I would have expected the removal operation to uninstall all of the same dependencies.

For comparison, "yum remove python-mwlib python-mwlib-debuginfo tex-preview --remove-leaves" produces:

Removing:
 kpathsea                      i586      2007-46.fc11        installed    158 k
 netpbm                        i586      10.47.04-1.fc11     installed    2.1 M
 netpbm-progs                  i586      10.47.04-1.fc11     installed    4.0 M
 odfpy                         noarch    0.8-3.fc11          installed    1.4 M
 psutils                       i586      1.17-30.fc11        installed    207 k
 pyparsing                     noarch    1.5.0-4.fc11        installed    4.1 M
 python-flup                   noarch    1.0-4.fc11          installed    494 k
 python-mwlib                  i586      0.9.10-2.fc11       installed    3.4 M
 python-mwlib-debuginfo        i586      0.9.10-2.fc11       installed    998 k
 tex-preview                   noarch    11.85-8.fc11        installed    123 k
 texlive                       i586      2007-46.fc11        installed    4.1 M
 texlive-dvips                 i586      2007-46.fc11        installed    277 k
 texlive-texmf                 noarch    2007-31.fc11        installed     14 M
 texlive-texmf-dvips           noarch    2007-31.fc11        installed    2.0 M
 texlive-texmf-errata          noarch    2007-6.fc11         installed     0.0 
 texlive-texmf-errata-dvips    noarch    2007-6.fc11         installed     0.0 
 texlive-texmf-errata-fonts    noarch    2007-6.fc11         installed     0.0 
 texlive-texmf-errata-latex    noarch    2007-6.fc11         installed     0.0 
 texlive-texmf-fonts           noarch    2007-31.fc11        installed    107 M
 texlive-utils                 i586      2007-46.fc11        installed    443 k
Removing for dependencies:
 texlive-latex                 i586      2007-46.fc11        installed     97 k
 texlive-texmf-latex           noarch    2007-31.fc11        installed     26 M

Version: yum-plugin-remove-with-leaves-1.1.23-1.fc11.noarch

Comment 1 James Antill 2009-11-02 14:51:17 UTC
It isn't recursive, or --remove-leaves would uninstall everything.

So say you have "A requires B, C which requires D", on install for "install A" you get "install for deps. B, C, D". But on uninstall you only get rid of "B, C".

 In F12 we have history, so you can do "yum history undo" and it'll get rid of everything.