Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 18433

Summary: Portage should automatically uninstall (unmerge) packages which are unused in the system
Product: Portage Development Reporter: Thomas Mader <tezem>
Component: CoreAssignee: Nicholas Jones (RETIRED) <carpaski>
Status: RESOLVED INVALID    
Severity: enhancement    
Priority: High    
Version: 2.0   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Thomas Mader 2003-03-29 12:27:18 UTC
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:
Comment 1 hydralisk 2003-06-19 13:20:11 UTC
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>". 
Comment 2 SpanKY gentoo-dev 2003-07-23 19:34:58 UTC
`emerge depclean`