Adding .db support to pkg_tools
yanefbsd at gmail.com
Sun May 11 13:37:28 UTC 2008
On May 9, 2008, at 5:43 AM, Joerg Sonnenberger wrote:
> On Fri, May 09, 2008 at 01:52:46PM +0200, Anders Nore wrote:
>> I'm working on adding .db support to the pkg_tools( i.e. pkg_add,
>> etc. ) as part of SoC 2008. The database api used is BerkeleyDB
>> that comes
>> with the base system (/usr/src/include/db.h). BerkeleyDB is not
>> typical relational db, and can only save key/value pairs. The way I'm
>> thinking of storing information to the .db is to name the keys as the
>> directory names in /var/db/pkg. And save the +* files in the
>> directories to
>> the value element in the db, separated with a special character or
> As one of the persons hacking on pkg_install in pkgsrc/NetBSD, I would
> *strongly* advisy you against storing the files only in a bdb file.
> The change of major and complete corruption with bdb185 is high,
> consider pulling the plug in the middle of a long update.
+1. BDB is quite easy to corrupt...
More information about the freebsd-hackers