From owner-freebsd-questions@FreeBSD.ORG Wed Jan 4 20:24:39 2006 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D47FC16A41F; Wed, 4 Jan 2006 20:24:39 +0000 (GMT) (envelope-from parv@pair.com) Received: from mta13.adelphia.net (mta13.adelphia.net [68.168.78.44]) by mx1.FreeBSD.org (Postfix) with ESMTP id 346DF43D5A; Wed, 4 Jan 2006 20:24:35 +0000 (GMT) (envelope-from parv@pair.com) Received: from default.chvlva.adelphia.net ([68.67.248.200]) by mta13.adelphia.net (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with ESMTP id <20060104202435.ZKBK26442.mta13.adelphia.net@default.chvlva.adelphia.net>; Wed, 4 Jan 2006 15:24:35 -0500 Received: by default.chvlva.adelphia.net (Postfix, from userid 1000) id 24E8BB702; Wed, 4 Jan 2006 15:24:41 -0500 (EST) Date: Wed, 4 Jan 2006 15:24:41 -0500 From: Parv To: Fernan Aguero , FreeBSD Questions , Colin Percival , Mark Ovens , Kent Stewart , eoghan Message-ID: <20060104202441.GB95076@holestein.holy.cow> Mail-Followup-To: Fernan Aguero , FreeBSD Questions , Colin Percival , Mark Ovens , Kent Stewart , eoghan References: <43B3EEF9.3010004@freebsd.org> <43B3F22D.5070601@freebsd.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <43B3F22D.5070601@freebsd.org> X-Mailman-Approved-At: Thu, 05 Jan 2006 00:01:22 +0000 Cc: Subject: Re: pkgdb format X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Jan 2006 20:24:40 -0000 in message <43B3F22D.5070601@freebsd.org>, wrote Fernan Aguero thusly... > > The pkgdb.db file got rebuild the first time, and then everything > worked right until portupgrade reinstalled databases/ruby-bdb1. > From this point on, the rebuilding of pkgdb.db started, > alternating between bdm_hash and dbd1_btree I personally never had problem w/ pkgdb update and type of the db format used. Then again i do not use portupgrade (& assortments) much. > Anyway, I just wanted to add that I've been unable to find > documentation on the format of the pkgdb.db file ... 'man -k > pkgdb' turns up pkgdb(1), but there is nothing there regarding the > alternative formats (hash/btree) or how to set them explicitly. sysutils/portupgrade needs databases/ruby18-bdb4 which needs databases/db4. Some of the files installed w/ db4 are in /usr/local/bin/db4_* and /misc/local/share/doc/db4/{utility,ref}. At least two of them relate to db4_verify. Well, running ... db4_verify /var/db/package/pkgdb.db ... prints lots of error messages. All that looking around for no good, but wait ... file /var/db/package/pkgdb.db /var/db/package/pkgdb.db: Berkeley DB 1.85 (Hash, version 2, native byte-order) ... so my version of pkgdb.db is in hash format. Try that on yours. - Parv --