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
If you have a concrete use case in mind, don't hesitate to share it with us :) It may raise the chance ;)
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.
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.