I wrote a script that remembers the package with all deps that you've emerged and creates a unmerge from this list. So you can unmerge the package with all deps. This makes sense for updating KDE for example. I hope it's possible to see it in the portage tree? Reproducible: Always Steps to Reproduce:
Created attachment 39548 [details] cunmergelist ebuild
Comment on attachment 39548 [details] cunmergelist ebuild Old one. Use the new one instead.
Created attachment 39565 [details] cunmergelist ebuild
Stefan, do you think it could be useful to add an option to limit this behaviour to a specific category? Is it to difficult to add? as it could be: cunmergelist -u kde --limit-to kde-base kde-i18n ... or with a wildcard: cunmergelist -u kde --limit-to kde-* PS: I think that a patch for portage with a new option like "emerge unmerge pkgname --with-immediate-deps" could be more interesting than a standalone script, but before doing it, it would be better to ask some dev if (s)he is interested in it or if it's just a waste of time to implement.
Putting a hold on feature requests for portage as they are drowning out the bugs. Most of these features should be available in the next major version of portage. But for the time being, they are just drowning out the major bugs and delaying the next version's progress. Any bugs that contain patches and any bugs for etc-update or dispatch-conf can be reopened. Sorry, I'm just not good enough with bugzilla. ;)
Closing due to old age (won't work with portage-2.1 and is quite insecure)
This seems like a combination of --unmerge and --depclean. The --depclean support has greatly improved in portage-2.1.1 relative to previous versions, and it's even better in 2.1.2. I'd suggest to simply use --depclean after --unmerge.