From: Alexander Skwar <listen@alexander.skwar.name>
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 16:30:54 +0200 [thread overview]
Message-ID: <449FEF9E.6020203@mid.message-center.info> (raw)
In-Reply-To: <7573e9640606260136s2c50f1c6rc39499e39793e864@mail.gmail.com>
Richard Fish wrote:
> This works, but it does seem to take a long time!
Probably because of all those dirnames and basename calls. Try:
cd /usr/portage
find . -name "*.ebuild" | sed -e 's/\.\///g' | while read ebuild; do
pkg=${ebuild%/*}
category=${pkg%/*}
pkgdir=${ebuild##*/} ; pkgdir=${pkgdir%.ebuild}
[[ -d "/var/db/pkg/$category/$pkgdir" ]] && echo "$pkg"
done | sort
Alexander Skwar
--
Some people pray for more than they are willing to work for.
--
gentoo-user@gentoo.org mailing list
next prev parent reply other threads:[~2006-06-26 14:53 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 [this message]
2006-06-26 8:45 ` Jure Varlec
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=449FEF9E.6020203@mid.message-center.info \
--to=listen@alexander.skwar.name \
--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