public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] get unversioned list of installed packages without eix or esearch
@ 2006-06-26  6:44 Bo Ørsted Andresen
  2006-06-26  8:36 ` Richard Fish
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Bo Ørsted Andresen @ 2006-06-26  6:44 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1149 bytes --]

I know that I can get a list of installed packages without their version 
numbers with eix:

# eix -nI --format '<category>/<name>' | \
	grep -vr '^$\|^\[[0-9]*\]\|^Found\ [0-9]*'

This is probably possible with esearch too. But does anybody know of a way to 
get it with portage, bash or gentoolkit?

I was of course considering something like this:

# cd /var/db/pkg && ls * | ${some_magic_regular_expression_to_remove_version}

But I have found it impossible to make a regular expression that does break 
for at least one of those:

media-fonts/font-adobe-100dpi-1.0.0
media-fonts/font-adobe-75dpi-1.0.0
media-fonts/font-adobe-utopia-type1-1.0.1
media-libs/jpeg-6b-r7
net-misc/cisco-vpnclient-3des-4.8.00.0490
sys-apps/portage-2.1.1_pre1-r2
sys-fs/udev-090
sys-fs/udev-090-r1
sys-libs/libstdc++-v3-3.3.6
sys-libs/timezone-data-2006g

Which are:

media-fonts/font-adobe-100dpi
media-fonts/font-adobe-75dpi
media-fonts/font-adobe-utopia-type1
media-libs/jpeg
net-misc/cisco-vpnclient-3des
sys-apps/portage
sys-fs/udev
sys-fs/udev
sys-libs/libstdc++-v3
sys-libs/timezone-data

Any ideas?

-- 
Bo Andresen

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2006-06-26 14:53 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-26  6:44 [gentoo-user] get unversioned list of installed packages without eix or esearch Bo Ørsted Andresen
2006-06-26  8:36 ` Richard Fish
2006-06-26 14:30   ` Alexander Skwar
2006-06-26  8:45 ` Jure Varlec
2006-06-26  9:53   ` Bo Ørsted Andresen
2006-06-26  9:03 ` Zac Medico

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox