[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: "dselect" replacement team

On Fri, 11 Apr 1997, Jason Gunthorpe wrote:

> The ideal database for dpkg data is a multi-teired thing (I'm not a dbase
> expert so excuse the terminology ;>) We need a first teir that has a list
> of all the packages and a second tier that has each of the fields in the
> control file. Each package has about 8 fields that need to be stored so we
> might be able to use some kind of simple binary structure inside a larger
> database.

The "first tier" is called the key, and the "second tier" is called the
data, generally, and they are linked (that's in libdb's BTREE format,

So, if you want to list all the packages, you just go through the
database, reading all the keys.

If you want the info, you look it up by the package.

Tom Lees <tom@lpsg.demon.co.uk>			http://www.lpsg.demon.co.uk/
PGP ID 87D4D065, fingerprint 2A 66 86 9D 02 4D A6 1E  B8 A2 17 9D 4F 9B 89 D6
finger tom@master.debian.org for full public key (also available on keyservers)

Reply to: