Gentoo Archives: gentoo-user

From: "Bo Ørsted Andresen" <bo.andresen@××××.dk>
To: gentoo-user@l.g.o
Subject: [gentoo-user] get unversioned list of installed packages without eix or esearch
Date: Mon, 26 Jun 2006 06:50:37
Message-Id: 200606260844.28702.bo.andresen@zlin.dk
1 I know that I can get a list of installed packages without their version
2 numbers with eix:
3
4 # eix -nI --format '<category>/<name>' | \
5 grep -vr '^$\|^\[[0-9]*\]\|^Found\ [0-9]*'
6
7 This is probably possible with esearch too. But does anybody know of a way to
8 get it with portage, bash or gentoolkit?
9
10 I was of course considering something like this:
11
12 # cd /var/db/pkg && ls * | ${some_magic_regular_expression_to_remove_version}
13
14 But I have found it impossible to make a regular expression that does break
15 for at least one of those:
16
17 media-fonts/font-adobe-100dpi-1.0.0
18 media-fonts/font-adobe-75dpi-1.0.0
19 media-fonts/font-adobe-utopia-type1-1.0.1
20 media-libs/jpeg-6b-r7
21 net-misc/cisco-vpnclient-3des-4.8.00.0490
22 sys-apps/portage-2.1.1_pre1-r2
23 sys-fs/udev-090
24 sys-fs/udev-090-r1
25 sys-libs/libstdc++-v3-3.3.6
26 sys-libs/timezone-data-2006g
27
28 Which are:
29
30 media-fonts/font-adobe-100dpi
31 media-fonts/font-adobe-75dpi
32 media-fonts/font-adobe-utopia-type1
33 media-libs/jpeg
34 net-misc/cisco-vpnclient-3des
35 sys-apps/portage
36 sys-fs/udev
37 sys-fs/udev
38 sys-libs/libstdc++-v3
39 sys-libs/timezone-data
40
41 Any ideas?
42
43 --
44 Bo Andresen

Replies