Gentoo Archives: gentoo-dev

From: Paul de Vrieze <pauldv@g.o>
To: gentoo-dev@g.o
Subject: Re: [gentoo-dev] maybe it is time to put portage queries into a database.
Date: Wed, 25 Jun 2003 10:39:41
Message-Id: 200306251239.35377.pauldv@gentoo.org
In Reply to: Re: [gentoo-dev] maybe it is time to put portage queries into a database. by Marius Mauch
1 On Wednesday 25 June 2003 00:41, Marius Mauch wrote:
2 >
3 > BTW, I also noted the slowness of the search function, especially when
4 > searching in descriptions, my worst measured result was 25 minutes! Most
5 > likely caused by a serious lack of ram, but half an hour just to find a
6 > package is really annoying.
7 >
8
9 The problem is the enormous amount of ebuilds we offer. The amount of ebuilds
10 is currently: 8553 and the amount of files is: 50435.
11
12 Try the following script to make searching faster:
13 find /usr/portage/ -name "*.ebuild" -exec grep -H DESCRIPTION {} \; \
14 |awk -F: '{ sub("(/usr/portage/[^/]*/)","",$1); sub("/.*","",$1); \
15 printf("%-20s:%s\n", $1, $2) }'|sort |uniq >~/descriptions
16
17 This will make a nice file with all descriptions for all packages, filtered
18 for duplicates. Just use grep on this file instead of emerge -S and you can
19 find the package. If you put the creation of this file in crontab, you have
20 yourself a fast and flexible solution, with only 4726 lines of descriptions.
21
22 Paul
23
24 --
25 Paul de Vrieze
26 Researcher
27 Mail: pauldv@××××××.nl
28 Homepage: http://www.devrieze.net

Replies

Subject Author
Re: [gentoo-dev] maybe it is time to put portage queries into a database. kl4rk <kl4rkmail@××××××××.com>