Bug 1043960

Summary: clean_requirements_on_remove no longer uninstalls leaves
Product: [Fedora] Fedora Reporter: Christoph Wickert <cwickert>
Component: yumAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 20CC: admiller, cwickert, ffesti, firas.alkafri, jzeleny, packaging-team-maint, vmukhame
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-02-03 14:52:29 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

Description Christoph Wickert 2013-12-17 14:06:40 UTC
Description of problem:
After upgrading to Fedora 20, "clean_requirements_on_remove=1" in /etc/yum.conf no longer uninstalls leaves.

Version-Release number of selected component (if applicable):
yum-3.4.3-120.fc20.noarch

How reproducible:
always

Steps to Reproduce:
1. set "clean_requirements_on_remove=1" in /etc/yum.conf
2. install something with dependencies. 
3. uninstall it

Actual results:
dependencies are not uninstalled automatically. If you have yum-plugin-show-leaves, it will actually show you the leaves. but they will not be uninstalled. This is pretty cumbersome, sometimes one needs 5 or 6 iterations of manually removing the new leaves to fully uninstall all deps.

Expected results:
all leaves should be removed automatically.

Additional info:
Worked fine in F19 until I upgraded.

Comment 1 Zdeněk Pavlas 2014-01-29 10:24:56 UTC
We can't reproduce it in F20. Might be a problem with yumdb. Can you check the yumdb attributes of the leaf package Yum does not remove?

(yumdb info <pkgname>).  Unless "reason = dep", Yum won't remove it, because it will be considered user-installed.

Comment 2 Christoph Wickert 2014-01-29 15:54:16 UTC
Thanks for this hint.

It works for new packages that got installed with reason=dep, however with the upgrade to F20, clean_requirements_on_remove broke for all previous installed packages. Did nobody think about implementing the new yum groups as object stuff in a way that does not break backwards compatibility?

Comment 3 Valentina Mukhamedzhanova 2014-02-03 14:52:29 UTC

*** This bug has been marked as a duplicate of bug 979083 ***