View previous topic :: View next topic |
Author |
Message |
gabor Apprentice
Joined: 12 Dec 2002 Posts: 156 Location: Slovakia
|
Posted: Mon Feb 03, 2003 4:55 pm Post subject: how to remove not needed packages |
|
|
hi,
what i ideally want to do is:
emerge -whatever would look thru all the packages installed, and remove those which aren't dependencies of any package in the world file...
for example:
i do an 'emerge nautilus'.
it installs let's say 10 packages like gconf, gnome-vfs, and of course nautilus
then after some time i do an 'emerge unmerge nautilus'
but that only removes nautilus, and leaves gconf or gnome-vfs.
what i would like is that if no package in the world file needs gconf, then gconf should be removed ...
i was thinking about something like:
list all packages with epm -qa.
let's call this list A.
list all the world-needed packages with emerge -up --emptytree world. this is list B
now i think the unneeded packages are those which are in 'A minus B',
so those can be safely unmerged.
am i correct? |
|
Back to top |
|
|
fifo Guru
Joined: 14 Jan 2003 Posts: 437
|
Posted: Mon Feb 03, 2003 5:38 pm Post subject: |
|
|
Does "emerge -p depclean" do what you want? |
|
Back to top |
|
|
gabor Apprentice
Joined: 12 Dec 2002 Posts: 156 Location: Slovakia
|
Posted: Mon Feb 03, 2003 6:09 pm Post subject: |
|
|
that's what i've been looking for
thanks |
|
Back to top |
|
|
LeChuck n00b
Joined: 11 Aug 2002 Posts: 31
|
Posted: Thu Feb 06, 2003 12:57 pm Post subject: |
|
|
emerge depclean is cool for getting rid of those dependencies following an unemerge. But how would I remove and know which old files to remove after the unemerge? Example I emerged say courier-imap it creates say a directory in /etc maybe a few files in /etc/pam.d, some in /etc/init.d then a few somewhere else. But after unemerging it those files and directories are still there, how'd I know exactly which are safe to delete? |
|
Back to top |
|
|
EasyPzy n00b
Joined: 01 Feb 2003 Posts: 37 Location: Stockholm, Sweden
|
Posted: Thu Feb 06, 2003 5:11 pm Post subject: |
|
|
I thought that unmerge deleted those files. It will however leave the directories if other progs are claiming them. |
|
Back to top |
|
|
LeChuck n00b
Joined: 11 Aug 2002 Posts: 31
|
Posted: Thu Feb 06, 2003 7:58 pm Post subject: |
|
|
Yeah is gets rid of some directories like the ones in /usr for example but directories and files in /etc are nor removed even if other programs are not claiming them. Justing thinking, after lots of installs to try out new programs there'll be alot of files cluttering /etc/ |
|
Back to top |
|
|
|