Gentoo Archives: gentoo-user

From: "Bo Ørsted Andresen" <bo.andresen@××××.dk>
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 10:03:16
Message-Id: 200606261153.33946.bo.andresen@zlin.dk
In Reply to: Re: [gentoo-user] get unversioned list of installed packages without eix or esearch by Jure Varlec
1 On Monday 26 June 2006 10:45, Jure Varlec wrote:
2 > sed -r 's/-[^-]+(-r[0-9]+)*$//'
3
4 This was exactly what I was looking for. Since the following command did not
5 produce any relevant output I can confirm that this works for everything
6 currently in portage.
7
8 # cd /usr/portage && \
9 find . -name '*.ebuild' | sed -e 's/\.ebuild$//' | \
10 awk -F/ '{print $2"/"$4}' | sed -r 's/-[^-]+(-r[0-9]+)*$//' | \
11 awk -F/ '{system("eix -C "$1" -e "$2" -c | grep -q ^Found\\ 1\\ matches || \
12 echo "$0)}'
13
14 Thank you to everyone who replied. :)
15
16 --
17 Bo Andresen