1 |
-----BEGIN PGP SIGNED MESSAGE----- |
2 |
Hash: SHA1 |
3 |
|
4 |
Duncan wrote: |
5 |
> Try emerge with the -n/--noreplace option, which is sort of the reverse |
6 |
> of -1/--oneshot (and not to be confused with -N/--newuse). If the |
7 |
> package is already merged, -n just adds it to the world file without |
8 |
> actually remerging it. Then --depclean won't try to remove it or its |
9 |
> dependencies. |
10 |
> |
11 |
> I do this all the time since I use --oneshot in my (stub-scripted) normal |
12 |
> emerge commands. Unless I know I want to keep it (in which case I use a |
13 |
> special version without the --oneshot), I'll use a script that adds -1 by |
14 |
> default. That way I can try out a package and decide if I like it, |
15 |
> before either adding it to world using emerge -n or --depcleaning it and |
16 |
> dependencies. Then, since I always use -a or -p as well, when I run |
17 |
> --depclean I'll get a list of packages I haven't decided on yet. I |
18 |
> seldom run --depclean and let it do its thing, preferring to use emerge |
19 |
> -C to unmerge packages on the list specifically, if I've decided not to |
20 |
> keep them, or emerge -n to add them to my world file if I do want to keep |
21 |
> them. If I've not decided yet, they just sit in the list, but that |
22 |
> doesn't happen very long for very many packages, and my --depclean -p |
23 |
> list is usually empty. |
24 |
|
25 |
I do something similar, but I (almost) never use emerge -C, instead, to |
26 |
remove a package, I use emerge --depclean category/package, which |
27 |
removes a package *only if* it is not a dependency of something else (I |
28 |
only use -C/--unmerge when I know that it isn't a dep, but portage |
29 |
thinks it is (eg, "|| ( foo/bar foo/baz )", when I have both foo/bar and |
30 |
foo/baz installed, portage won't remove either with --depclean in some |
31 |
cases). |
32 |
|
33 |
> Also note the --with-bdeps=<y|n> option. Since I always want build |
34 |
> dependencies retained, I have EMERGE_DEFAULT_OPTIONS="--with-bdeps=y" set |
35 |
> (along with --keep-going and --nospinner, but the bdeps option is what is |
36 |
> important here). Otherwise, --depclean will always want to unmerge build |
37 |
> dependencies as they aren't needed to actually run the package, only to |
38 |
> build it. |
39 |
|
40 |
Actually, --with-bdeps=y is the default when you use --depclean, exactly |
41 |
for that reason. |
42 |
|
43 |
- -- |
44 |
ABCD |
45 |
-----BEGIN PGP SIGNATURE----- |
46 |
Version: GnuPG v2.0.9 (GNU/Linux) |
47 |
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org |
48 |
|
49 |
iEYEARECAAYFAkkqj7AACgkQOypDUo0oQOqWBACdG7ZUaelv4QeQCFA/AAH8plcR |
50 |
fSIAmQGap/c4dCisRX4Vo6YvAyQgMyd8 |
51 |
=uRM/ |
52 |
-----END PGP SIGNATURE----- |