I didn't know the emaint command, but I tried it and it didn't work. It still wants to remove gcc-3 even though I need that for qemu-softmmu.
So I guess I need to use the -n to add everything manual to my world file.... On Mon, Nov 24, 2008 at 12:27 PM, ABCD <[EMAIL PROTECTED]> wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Duncan wrote: >> Try emerge with the -n/--noreplace option, which is sort of the reverse >> of -1/--oneshot (and not to be confused with -N/--newuse). If the >> package is already merged, -n just adds it to the world file without >> actually remerging it. Then --depclean won't try to remove it or its >> dependencies. >> >> I do this all the time since I use --oneshot in my (stub-scripted) normal >> emerge commands. Unless I know I want to keep it (in which case I use a >> special version without the --oneshot), I'll use a script that adds -1 by >> default. That way I can try out a package and decide if I like it, >> before either adding it to world using emerge -n or --depcleaning it and >> dependencies. Then, since I always use -a or -p as well, when I run >> --depclean I'll get a list of packages I haven't decided on yet. I >> seldom run --depclean and let it do its thing, preferring to use emerge >> -C to unmerge packages on the list specifically, if I've decided not to >> keep them, or emerge -n to add them to my world file if I do want to keep >> them. If I've not decided yet, they just sit in the list, but that >> doesn't happen very long for very many packages, and my --depclean -p >> list is usually empty. > > I do something similar, but I (almost) never use emerge -C, instead, to > remove a package, I use emerge --depclean category/package, which > removes a package *only if* it is not a dependency of something else (I > only use -C/--unmerge when I know that it isn't a dep, but portage > thinks it is (eg, "|| ( foo/bar foo/baz )", when I have both foo/bar and > foo/baz installed, portage won't remove either with --depclean in some > cases). > >> Also note the --with-bdeps=<y|n> option. Since I always want build >> dependencies retained, I have EMERGE_DEFAULT_OPTIONS="--with-bdeps=y" set >> (along with --keep-going and --nospinner, but the bdeps option is what is >> important here). Otherwise, --depclean will always want to unmerge build >> dependencies as they aren't needed to actually run the package, only to >> build it. > > Actually, --with-bdeps=y is the default when you use --depclean, exactly > for that reason. > > - -- > ABCD > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v2.0.9 (GNU/Linux) > Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org > > iEYEARECAAYFAkkqj7AACgkQOypDUo0oQOqWBACdG7ZUaelv4QeQCFA/AAH8plcR > fSIAmQGap/c4dCisRX4Vo6YvAyQgMyd8 > =uRM/ > -----END PGP SIGNATURE----- > > > -- Tonko
