Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
how to remove not needed packages
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Portage & Programming
View previous topic :: View next topic  
Author Message
gabor
Apprentice
Apprentice


Joined: 12 Dec 2002
Posts: 156
Location: Slovakia

PostPosted: Mon Feb 03, 2003 4:55 pm    Post subject: how to remove not needed packages Reply with quote

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
View user's profile Send private message
fifo
Guru
Guru


Joined: 14 Jan 2003
Posts: 437

PostPosted: Mon Feb 03, 2003 5:38 pm    Post subject: Reply with quote

Does "emerge -p depclean" do what you want?
Back to top
View user's profile Send private message
gabor
Apprentice
Apprentice


Joined: 12 Dec 2002
Posts: 156
Location: Slovakia

PostPosted: Mon Feb 03, 2003 6:09 pm    Post subject: Reply with quote

that's what i've been looking for :-)
thanks
Back to top
View user's profile Send private message
LeChuck
n00b
n00b


Joined: 11 Aug 2002
Posts: 31

PostPosted: Thu Feb 06, 2003 12:57 pm    Post subject: Reply with quote

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
View user's profile Send private message
EasyPzy
n00b
n00b


Joined: 01 Feb 2003
Posts: 37
Location: Stockholm, Sweden

PostPosted: Thu Feb 06, 2003 5:11 pm    Post subject: Reply with quote

I thought that unmerge deleted those files. It will however leave the directories if other progs are claiming them.
Back to top
View user's profile Send private message
LeChuck
n00b
n00b


Joined: 11 Aug 2002
Posts: 31

PostPosted: Thu Feb 06, 2003 7:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Portage & Programming All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum