1 |
maybe this works: |
2 |
|
3 |
equery -q d jpeg | sed -e "s/^/=/" | xargs emerge -j 4 -1 |
4 |
|
5 |
I don't know how do to that using only portage utilities, but sed and xargs |
6 |
are always allowed, I guess :) |
7 |
|
8 |
On Wed, Jan 20, 2010 at 8:51 AM, Helmut Jarausch < |
9 |
jarausch@××××××××××××××××.de> wrote: |
10 |
|
11 |
> Hi, |
12 |
> again, I have to work around a broken Gentoo system. |
13 |
> (I cannot re-install kde-base/step) |
14 |
> |
15 |
> Because of that I have to replace |
16 |
> emerge @preserved-rebuild |
17 |
> |
18 |
> by something which just updates all packages |
19 |
> depending on media-libs/jpeg . |
20 |
> Here, |
21 |
> equery -qC depends media-libs/jpeg |
22 |
> |
23 |
> or probably |
24 |
> |
25 |
> equery -qC depends --indirect media-libs/jpeg |
26 |
> |
27 |
> comes to my mind. |
28 |
> |
29 |
> But the output is not quite what I need. |
30 |
> I'd like to use parallel emerge (option -j4) |
31 |
> since there are a lots of packages to re-emerge. |
32 |
> I'd need a long line containing several items, e.g. |
33 |
> '=dev-python/pygraphviz-0.99.1' |
34 |
> |
35 |
> I could send the output of equery to a file, |
36 |
> edit it with an editor with good regexp support |
37 |
> and hand it over to the shell. |
38 |
> |
39 |
> But I wonder, is there an easier way to use |
40 |
> portage utilities for that? |
41 |
> |
42 |
> Many thanks for a hint, |
43 |
> Helmut. |
44 |
> |
45 |
> -- |
46 |
> Helmut Jarausch |
47 |
> |
48 |
> Lehrstuhl fuer Numerische Mathematik |
49 |
> RWTH - Aachen University |
50 |
> D 52056 Aachen, Germany |
51 |
> |
52 |
> |
53 |
|
54 |
|
55 |
-- |
56 |
Crístian Deives dos Santos Viana [aka CD1] |