Bug 1164279 - No "leaves" plugins for dnf
Summary: No "leaves" plugins for dnf
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: dnf-plugins-core
Version: 21
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Packaging Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On: 1125925
Blocks:
TreeView+ depends on / blocked
 
Reported: 2014-11-14 14:29 UTC by Andrew
Modified: 2014-11-18 12:51 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2014-11-18 12:51:12 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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.


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