1 |
On Thu, 20 Feb 2014 13:38:06 +0100, Helmut Jarausch wrote: |
2 |
|
3 |
> I've tried |
4 |
> |
5 |
> emerge -uv1 `equery -q d P` |
6 |
> |
7 |
> or emerge -uv1 `qdepends -q -Q P` |
8 |
> |
9 |
> but both commands (equery and qdepends) generate a list with the |
10 |
> version attached like |
11 |
> app-editors/kile-2.1.3 |
12 |
> which emerge doesn't like (unless there is an '= in front of each name) |
13 |
> |
14 |
> Is there an easy way to do so without resorting to shell/python |
15 |
> scripting? |
16 |
|
17 |
Stripping the version, which you can do with qatom, is not a good idea |
18 |
because it will only reinstall the newest version of any slotted |
19 |
packages. Best to use sed to prefix each atom with = |
20 |
|
21 |
emerge -1a $(qdepends -qQ P | sed 's/^/=/') |
22 |
|
23 |
Also, the use of -u in your examples means currently installed packages |
24 |
will not be re-emerged, unless a newer version is available. |
25 |
|
26 |
|
27 |
-- |
28 |
Neil Bothwick |
29 |
|
30 |
Monday is the root of all evil! |