From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1Fump5-0002BV-TT for garchives@archives.gentoo.org; Mon, 26 Jun 2006 08:52:00 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.7/8.13.6) with SMTP id k5Q8oPUP027430; Mon, 26 Jun 2006 08:50:25 GMT Received: from exzombie.homeip.net (BSN-61-14-83.dial-up.dsl.siol.net [86.61.14.83]) by robin.gentoo.org (8.13.7/8.13.6) with ESMTP id k5Q8jB9U020990 for ; Mon, 26 Jun 2006 08:45:13 GMT Received: from [192.168.0.4] (slirith [192.168.0.4]) by exzombie.homeip.net (Postfix) with ESMTP id DC9356020B for ; Mon, 26 Jun 2006 10:45:09 +0200 (CEST) From: Jure Varlec 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 User-Agent: KMail/1.9.3 References: <200606260844.28702.bo.andresen@zlin.dk> In-Reply-To: <200606260844.28702.bo.andresen@zlin.dk> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1393396.akqmETmdFG"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200606261045.49372.exzombie@exzombie.homeip.net> X-Archives-Salt: 89235107-62bc-4637-9964-04f9fddbd672 X-Archives-Hash: 4320dadc6d21fd15a2f2a2eaa144bd6f --nextPart1393396.akqmETmdFG Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Monday 26 June 2006 08:44, Bo =D8rsted 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 bre= ak > 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=20 uses '-' in the version number, unless it's a case of '-rN'. But you never= =20 know, of course, so I always double check all package names I ever filter=20 through anything. Regards Jure --nextPart1393396.akqmETmdFG Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.2 (GNU/Linux) iD8DBQBEn569uf4XrD3ZBc8RAuSkAJ9ysgBDsj4f/agwZ1V+jVppSxtzGgCfRnQ9 6a9sJI3IqxGssKxXRkR6aDc= =dr4+ -----END PGP SIGNATURE----- --nextPart1393396.akqmETmdFG-- -- gentoo-user@gentoo.org mailing list