On Wed, Jun 17, 2009 at 04:13:23PM +0200, Lubos Kosco wrote: > I got a good question asked on a presentation of OpenSolaris, namely: > > If you uninstall a package using IPS pkg command, will also its > dependencies, that it installed, be uninstalled , when they are no > longer used by any other packages?
How could IPS know that those dependencies aren't needed by the user anyways? All leaf nodes in the dependency tree have to be presumed needed by the user. When an interior node becomes a leaf node following the removal of its child nodes, there's no information about whether the user wants that once-interior, now-leaf node is needed by the user. Therefore all pkgs must be presumed needed by the user. Of course, where there is information that some pkg is useless without dependents, then that pkg can be removed when there are no dependents left. I think that information can only really come from three places: the pkg's developer, an explicit decision by the user to install it, or a direct reference to the pkg in an incorporation that the user specifically chose to install. Nico -- _______________________________________________ pkg-discuss mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/pkg-discuss
