From: "Bo Ørsted Andresen" <bo.andresen@zlin.dk>
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 11:53:27 +0200 [thread overview]
Message-ID: <200606261153.33946.bo.andresen@zlin.dk> (raw)
In-Reply-To: <200606261045.49372.exzombie@exzombie.homeip.net>
[-- Attachment #1: Type: text/plain, Size: 566 bytes --]
On Monday 26 June 2006 10:45, Jure Varlec wrote:
> sed -r 's/-[^-]+(-r[0-9]+)*$//'
This was exactly what I was looking for. Since the following command did not
produce any relevant output I can confirm that this works for everything
currently in portage.
# cd /usr/portage && \
find . -name '*.ebuild' | sed -e 's/\.ebuild$//' | \
awk -F/ '{print $2"/"$4}' | sed -r 's/-[^-]+(-r[0-9]+)*$//' | \
awk -F/ '{system("eix -C "$1" -e "$2" -c | grep -q ^Found\\ 1\\ matches || \
echo "$0)}'
Thank you to everyone who replied. :)
--
Bo Andresen
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2006-06-26 10:03 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
2006-06-26 9:53 ` Bo Ørsted Andresen [this message]
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=200606261153.33946.bo.andresen@zlin.dk \
--to=bo.andresen@zlin.dk \
--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