From owner-freebsd-questions@FreeBSD.ORG Tue Mar 23 09:48:37 2004 Return-Path: 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 0D61B16A4CE for ; Tue, 23 Mar 2004 09:48:37 -0800 (PST) Received: from smtp.infracaninophile.co.uk (happy-idiot-talk.infracaninophile.co.uk [81.2.69.218]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4B70C43D31 for ; Tue, 23 Mar 2004 09:48:36 -0800 (PST) (envelope-from m.seaman@infracaninophile.co.uk) Received: from happy-idiot-talk.infracaninophile.co.uk (localhost.infracaninophile.co.uk [IPv6:::1])i2NHmOmQ003132 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO); Tue, 23 Mar 2004 17:48:24 GMT (envelope-from matthew@happy-idiot-talk.infracaninophile.co.uk) Received: (from matthew@localhost)id i2NHmOKR003131; Tue, 23 Mar 2004 17:48:24 GMT (envelope-from matthew) Date: Tue, 23 Mar 2004 17:48:24 +0000 From: Matthew Seaman To: Brian McCann Message-ID: <20040323174824.GD973@happy-idiot-talk.infracaninophile.co.uk> Mail-Followup-To: Matthew Seaman , Brian McCann , freebsd-questions@freebsd.org References: <000901c410f9$4662d5c0$6500a8c0@garfield> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="MAH+hnPXVZWQ5cD/" Content-Disposition: inline In-Reply-To: <000901c410f9$4662d5c0$6500a8c0@garfield> User-Agent: Mutt/1.5.6i X-Spam-Status: No, hits=-4.8 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=2.63 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on happy-idiot-talk.infracaninophile.co.uk X-Virus-Scanned: clamd / ClamAV version devel-20040316, clamav-milter version 0.67l cc: freebsd-questions@freebsd.org Subject: Re: Problem with pkgdb X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 23 Mar 2004 17:48:37 -0000 --MAH+hnPXVZWQ5cD/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 23, 2004 at 12:07:06PM -0500, Brian McCann wrote: > I've got an urgent problem that needs fixing...and i'm stuck. One of > the admins on one of our servers decided to delete the /var/db/pkg > directory. I tried rebuilding it using pkfdb -Fu, and it returned > nothing. Is there a way to recover from this...aside from backups? pkgdb -Fu scans the contents of /var/db/pkg to build its package database. Either use your backups, or re-install all of the ports you've got on that machine. However, that's harder to do than it sounds, as /var/db/pkg is what would be consulted to see exactly what ports are installed on the machine. On the plus side, losing /var/db/pkg doesn't affect the day to day operation of the system, so you can repair this at your leisure. Perhaps delegate the job of working out what ports were installed on that box to the admin who broke it, as an object lesson in the consequences of being too quick with the rm(1) command... Cheers, Matthew --=20 Dr Matthew J Seaman MA, D.Phil. 26 The Paddocks Savill Way PGP: http://www.infracaninophile.co.uk/pgpkey Marlow Tel: +44 1628 476614 Bucks., SL7 1TH UK --MAH+hnPXVZWQ5cD/ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAYHhodtESqEQa7a0RAq6mAJ93f2mnjyR4icCT9Z4EZCXjKgOOQgCgi5xl MiG6HL1dk2ExZNF3SSqUHjw= =AQNI -----END PGP SIGNATURE----- --MAH+hnPXVZWQ5cD/--