Bug 1164279

Summary: No "leaves" plugins for dnf
Product: [Fedora] Fedora Reporter: Andrew <travneff>
Component: dnf-plugins-coreAssignee: Packaging Maintenance Team <packaging-team-maint>
Status: CLOSED WONTFIX QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 21CC: akozumpl, jsilhan, mluscon, packaging-team-maint, pnemade, rholy, tim.lauridsen, travneff
Target Milestone: ---   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2014-11-18 12:51:12 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:
Embargoed:
Bug Depends On: 1125925    
Bug Blocks:    

Description Andrew 2014-11-14 14:29:41 UTC
dnf lacks the similar plugins for now. Do they have a chance to be added?

  yum-plugin-remove-with-leaves.noarch

  yum-plugin-show-leaves.noarch

Comment 1 Radek Holy 2014-11-14 15:06:55 UTC
If you have a concrete use case in mind, don't hesitate to share it with us :) It may raise the chance ;)

Comment 2 Andrew 2014-11-14 16:46:43 UTC
Hmm. I think I use them in the most usual manner.
They help a lot when you want to remove some package with its (auto-installed) dependencies.
There are two cases possible:
1) You don't want to keep any of the new "leaf" packages. Then it's a task for yum-plugin-remove-with-leaves.
2) You want to keep some of that deps. Then you need the list of leaves (provided by yum-plugin-show-leaves) to erase them selectively.

I see the "autoerase" command for dnf, but it's less transparent, as for me. I don't know if an erased package created new leaves. Always run "dnf autoerase" after "dnf erase" doesn't sound nice.
Besides that, it might break entirely if I'd like to keep some leaf. "Autoerase" usage will be just blocked until some explicit marking of the package I'd like to keep.

Comment 3 Honza Silhan 2014-11-18 12:51:12 UTC
Andrew,
1) use autoerase or set clean_requirements_on_remove config option to true for automatic removal
2) I haven't seen printed output in yum-plugin-show-leave. Summary before dnf transaction does not help?

Bug 1125925 could prevent some package to be uninstalled in batch.

I am closing it, if you find more advantages of the plugin, you can reopen it.