Gentoo Archives: gentoo-user

From: Daevid Vincent <daevid@××××××.com>
To: gentoo-user@l.g.o
Subject: [gentoo-user] In need of script/command that will parse out all the packages from "emerge -avu world"
Date: Mon, 20 Nov 2006 08:12:44
Message-Id: 003801c70c6e$7bb2f4d0$450a0a0a@locutus
1 Wondering if someone has a script or shell 'one liner' that can take the
2 output of "emerge -avu world" and make a list of the packages (I assume all
3 on one line). Then I could pump that back into "emerge -av" again (I don't
4 mind if it's a simple manual highlight and copy/append).
5
6 I didn't see anything here:
7 http://forums.gentoo.org/viewtopic.php?t=67849
8 http://gentoo-wiki.com/TIP_Portage_utilities_not_in_portage
9 There is that 'pfilter' that looks interesting, but it's 2 years old, and I
10 can't get it to work :-\
11
12 For example:
13
14 daevid ~ # emerge -avu world | grep x11-
15 [ebuild U ] x11-misc/util-macros-1.1.2 [1.1.0] USE="-debug" 45 kB
16 [ebuild U ] x11-proto/inputproto-1.4 [1.3.2] USE="-debug" 47 kB
17 [ebuild U ] x11-proto/xproto-7.0.9 [7.0.7] USE="-debug" 138 kB
18 [ebuild U ] x11-libs/xtrans-1.0.2 [1.0.1] USE="-debug" 97 kB
19 [ebuild U ] x11-libs/libX11-1.0.3-r1 [1.0.3] USE="ipv6 -debug" 1,415 kB
20 ...
21
22 I want to run some command that will give me a list like:
23
24 x11-misc/util-macros x11-proto/inputproto x11-proto/xproto ...
25
26 Then I could just select and copy that "string" and append it to "emerge -av
27 "
28
29 --
30 gentoo-user@g.o mailing list

Replies