From: | Alexander Skwar <listen@×××××××××××××××.name> | ||
---|---|---|---|
To: | gentoo-user@l.g.o | ||
Subject: | Re: [gentoo-user] get unversioned list of installed packages without eix or esearch | ||
Date: | Mon, 26 Jun 2006 14:53:39 | ||
Message-Id: | 449FEF9E.6020203@mid.message-center.info | ||
In Reply to: | Re: [gentoo-user] get unversioned list of installed packages without eix or esearch by Richard Fish |
1 | Richard Fish wrote: |
2 | |
3 | > This works, but it does seem to take a long time! |
4 | |
5 | Probably because of all those dirnames and basename calls. Try: |
6 | |
7 | cd /usr/portage |
8 | find . -name "*.ebuild" | sed -e 's/\.\///g' | while read ebuild; do |
9 | pkg=${ebuild%/*} |
10 | category=${pkg%/*} |
11 | pkgdir=${ebuild##*/} ; pkgdir=${pkgdir%.ebuild} |
12 | [[ -d "/var/db/pkg/$category/$pkgdir" ]] && echo "$pkg" |
13 | done | sort |
14 | |
15 | Alexander Skwar |
16 | -- |
17 | Some people pray for more than they are willing to work for. |
18 | -- |
19 | gentoo-user@g.o mailing list |