From: Jure Varlec <exzombie@exzombie.homeip.net>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] get unversioned list of installed packages without eix or esearch
Date: Mon, 26 Jun 2006 10:45:43 +0200 [thread overview]
Message-ID: <200606261045.49372.exzombie@exzombie.homeip.net> (raw)
In-Reply-To: <200606260844.28702.bo.andresen@zlin.dk>
[-- Attachment #1: Type: text/plain, Size: 608 bytes --]
On Monday 26 June 2006 08:44, Bo Ørsted Andresen wrote:
> 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:
sed -r 's/-[^-]+(-r[0-9]+)*$//'
It works on the examples you provided. I don't think anything in the tree
uses '-' in the version number, unless it's a case of '-rN'. But you never
know, of course, so I always double check all package names I ever filter
through anything.
Regards
Jure
[-- Attachment #2: Type: application/pgp-signature, Size: 191 bytes --]
next prev parent reply other threads:[~2006-06-26 8:52 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
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 [this message]
2006-06-26 9:53 ` Bo Ørsted Andresen
2006-06-26 9:03 ` Zac Medico
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=200606261045.49372.exzombie@exzombie.homeip.net \
--to=exzombie@exzombie.homeip.net \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox