Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Why doesn't portage...
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  
Author Message
jtxx000
n00b
n00b


Joined: 12 Mar 2006
Posts: 4

PostPosted: Sun Mar 12, 2006 4:00 am    Post subject: Why doesn't portage... Reply with quote

Why doesn't portage provide a way of automatically uninstalling dependencies along with the package? Ideally when you uninstall a package it should check if its dependencies are needed by other installed packages.

Cheers,
Caleb
Back to top
View user's profile Send private message
Mousee
Apprentice
Apprentice


Joined: 29 Mar 2004
Posts: 291
Location: Illinois, USA

PostPosted: Sun Mar 12, 2006 4:34 am    Post subject: Re: Why doesn't portage... Reply with quote

jtxx000 wrote:
Why doesn't portage provide a way of automatically uninstalling dependencies along with the package? Ideally when you uninstall a package it should check if its dependencies are needed by other installed packages.

Cheers,
Caleb

Because those packages might be required by other programs. Such a system I can imagine would cause a ton more overhead in Portage if it had to check for 'maintained dependencies' (packages that are still required for other package dependencies basically) and then finally unemerge what wasn't needed.
It would be nice however, if there was a system to keep track of packages that weren't used often, or at all, and generate a list of those that you can unemerge manually (or using some other system, whatever). I could certainly live with that :)
Back to top
View user's profile Send private message
Jfr0
n00b
n00b


Joined: 19 Dec 2005
Posts: 72

PostPosted: Sun Mar 12, 2006 5:08 am    Post subject: Reply with quote

man emerge
Quote:
--depclean
Determines all packages installed on the system that have no
explicit reason for being there. emerge generates a list of
packages which it expects to be installed by checking the system
package list and the world file. It then compares that list to
the list of packages which are actually installed; the differ-
ences are listed as unnecessary packages and then unmerged after
a short timeout. WARNING: Removing some packages may cause
packages which link to the removed package to stop working and
complain about missing libraries. Re-emerge the complaining
package to fix this issue. Note that changes in USE flags can
drastically affect the output of --depclean.
Back to top
View user's profile Send private message
kallamej
Administrator
Administrator


Joined: 27 Jun 2003
Posts: 4920
Location: Gothenburg, Sweden

PostPosted: Sun Mar 12, 2006 11:29 am    Post subject: Reply with quote

There are loads of threads about this already. You may want to check out Genone's metascan and a number of threads discussing reverse dependencies in Gentoo Chat.

Moved from Portage & Programming to Duplicate Threads.
_________________
Please read our FAQ Forum, it answers many of your questions.
irc: #gentoo-forums on irc.freenode.net
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads 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