public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
Search results ordered by [date|relevance]  view[summary|nested|Atom feed]
thread overview below | download: 
* Re: [gentoo-user] In need of script/command that will parse out all the packages from "emerge -avu world"
  @ 2006-11-21  1:41 99%       ` Richard Fish
  0 siblings, 0 replies; 1+ results
From: Richard Fish @ 2006-11-21  1:41 UTC (permalink / raw
  To: gentoo-user

On 11/20/06, b.n. <brullonulla@gmail.com> wrote:
> Boris Fersing ha scritto:
> > let's say you want to install a package "A" which depends on "B" and
> > "C", if you emerge these 3 packages with emerge -av A B C, the package
> > B and C won't be removed when you'll uninstall A and you'll have
> > unneeded dependencies installed on your system !
> >
> > If you install only A with emerge -av A and let portage manage the
> > dependencies for you, your system will still "clean" !
>
> I always understood that "emerge -C" NEVER deleted dependencies (and i
> fact, I've never seen it happening).
> Isn't it why the dreaded "emerge depclean" exists?

Boris has the right answer, but skipped a step or two in his
explanation.  You are correct that "emerge -C" will not remove
dependant packages.  But emerge --depclean never removes anything that
is in your world file.

So let's say you decide to play around with xfce4, so you do "emerge
xfce4".  This merges all packages that xfce4 depends on, but adds
*only* xfce4 to the world file.

And then you forget about it, a few months elapse, and a new version
comes out.  You decide to update using the script (or some other
command) that ends up merging each single package without the
--oneshot option.  Now all of those xfce4 packages are in your world
file, not just xfce4.

Some more time passes, you realize you have a lot of crap you are not
using installed, and decide to cleanup a bit, starting with "emerge -C
xfce4".  xfce4 is a metabuild that has no files, so that goes really
quick, and doesn't really get rid of anything.  Now you do "emerge
--depclean world", figuring that will clean out dependancies.  But
because you have all of those xfce4
packages in your world file, depclean doesn't want to remove any of them.

> By the way, I've never used --oneshot too...

It is almost always a good idea when doing
"some_command_to_create_pkg_list | xargs emerge".

-Richard
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[relevance 99%]

Results 1-1 of 1 | reverse | options above
-- pct% links below jump to the message on this page, permalinks otherwise --
2006-11-20 20:59     [gentoo-user] In need of script/command that will parse out all the packages from "emerge -avu world" Richard Fish
2006-11-20 22:18     ` Daevid Vincent
2006-11-20 22:36       ` Boris Fersing
2006-11-21  0:15         ` b.n.
2006-11-21  1:41 99%       ` Richard Fish

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox