When I make a emerge unmerge x and the programs y and z were installed as dependencies to the program x and y and z were not used by other programs y and z should also uninstalled by the emerge unmerge x. This feature should prevent wasted disk space on the system. I think this feature could work as follows. If I make a emerge x a new list will be made in which are all programs listed I have installed on my system and the dependencies to every program are shown. With this list Portage can check if a program stand "alone" (it is no dependencie to another program). If a program would be unmerged and there is a dependencie which stand "alone" the dependencie should be also unmerged automatically. The list of the programs on the system with the dependencies should also show which programs the user have installed therefore Portage don't unmerge programs which stand "alone" in the system but where seperate installed by the user. The list should show also if it is a program or something else. (libs,...) Reproducible: Always Steps to Reproduce:
I'd like to second this enhancement, as unmerging large packages (gnome, for example) is currently one of the most time-consuming things to do with portage. An implementation of this enhancement would greatly speed up this process. To clarify, the feature being requested is the equivilent of the behavior of Debian's "apt-get remove <package>".
`emerge depclean`