On Thu, 2003-02-06 at 03:10, Peter Ruskin wrote:
> On Thursday 06 Feb 2003 01:56, Ajay Sharma wrote:
> > On Wed, 5 Feb 2003, Mark D'voo wrote:
> > > Go here, it has a little script that will put every package you have
> > > installed including deps into your world file making sure that
> > > everything get's updated.
> > >
> > > http://forums.gentoo.org/viewtopic.php?t=7487&highlight=
> >
> > I thought that putting all your files including deps in the world file
> > was a bad idea??
> >
> > Someone tell me if this is wrong:
> >
> > Let's say you install packageA and it pulls in the depB, depC, and depD
> > packages as dependencies.  So from my understanding packageA will be
> > listed in the world file and the depB, depC and depD packages won't be.
> > Running 'emerge -u world' will update the packages listed in the world
> > file, packages like packageA will get updated while depB, depC, and
> > depD will stay at their older version.  To update those packages you
> > need to run 'emerge -u --deep world'.  And if you uninstall packageA,
> > then it will remove depB, depC, and depD.
> >
> > So far so good??
> 
> Not quite: if you uninstall packageA it will *not* remove depB, depC, and 
> depD.

A --depclean would however, Also --update will take a peak att depB
while --deep will follow down to depC and depD.

If you add the whole system to world a simple `emerge -u world` would
have to examine every single package, and its first line of deps, for
updates (I don't know it it optimizes away packages that has already
been decided on), which would mean that glibc f.ex. would be examined
about 400 times, could get rather slow I imagine...

/John

> >
> > Now if you run that script and put *all* your packages in the world
> > file then portage won't know if depB can safely be removed because it's
> > now a regular package in the world file instead of just being a
> > dependency of packageA?  So now you have stale libraries or other junk
> > that you probably don't need because you unmerged packageA a long time
> > ago but depB, depC and depD are still on your system taking up space.
> >
> > Is my thinking correct?  If so this should be spelled out somewhere
> > because every few weeks or so there's always a portage misunderstanding
> > that comes up on this list.
> >

--
[EMAIL PROTECTED] mailing list

Reply via email to