1 |
On Thursday 05 July 2007 20:07:58 Arturo 'Buanzo' Busleiman wrote: |
2 |
> > -u means direct deps will be updated too and that the target (in this |
3 |
> > case claws-mail) won't be remerged unless there's an upgrade (or |
4 |
> > downgrade). Without -u it still merges the latest visible version of the |
5 |
> > target itself.. |
6 |
> |
7 |
> From man emerge: |
8 |
> --update (-u) |
9 |
> Updates packages to the best version available, which may not |
10 |
> always be the highest version number due to masking for testing and |
11 |
> development. This will also update direct dependencies which may not |
12 |
> be what you want. Package atoms specified on the command line are |
13 |
> greedy, meaning that unspecific atoms may match multiple installed |
14 |
> versions of slotted packages. |
15 |
> |
16 |
> You can use --nodeps, too, so you only update the specific package, with no |
17 |
> deps. |
18 |
|
19 |
Why are you posting this? Was I unclear about anything? |
20 |
|
21 |
If foo has a direct dependency on >=cat/bar-1.5 and you have =cat/bar-1.4 |
22 |
installed then `emerge foo` will upgrade both foo and bar to latest visible |
23 |
versions because that direct dependency on bar is not satisfied. With -u the |
24 |
same would happen except foo won't be remerged if there is no upgrade. |
25 |
With --nodeps only foo would be upgraded or remerged despite the dependency |
26 |
on bar not being satisfied. |
27 |
|
28 |
If instead you already had =cat/bar-1.5 installed then `emerge foo` would |
29 |
upgrade or remerge foo only because the dependency on bar is already |
30 |
satisfied. With --update bar would be upgraded if a later version is |
31 |
available even though it isn't necessary to satisfy the dependency. |
32 |
With --nodeps still only foo gets upgraded or remerged. |
33 |
|
34 |
In summary --nodeps is potentially *very* dangerous. Don't use it unless you |
35 |
know what you are doing. Also don't use --update or --deep if you want to |
36 |
minimize the number of upgrades... |
37 |
|
38 |
-- |
39 |
Bo Andresen |