From owner-freebsd-questions@FreeBSD.ORG Mon Mar 26 12:53:57 2007 Return-Path: X-Original-To: freebsd-questions@freebsd.org Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1213416A400 for ; Mon, 26 Mar 2007 12:53:57 +0000 (UTC) (envelope-from roberthuff@rcn.com) Received: from smtp02.lnh.mail.rcn.net (smtp02.lnh.mail.rcn.net [207.172.157.102]) by mx1.freebsd.org (Postfix) with ESMTP id CB36C13C487 for ; Mon, 26 Mar 2007 12:53:56 +0000 (UTC) (envelope-from roberthuff@rcn.com) Received: from mr02.lnh.mail.rcn.net ([207.172.157.22]) by smtp02.lnh.mail.rcn.net with ESMTP; 26 Mar 2007 08:53:56 -0400 Received: from smtp01.lnh.mail.rcn.net (smtp01.lnh.mail.rcn.net [207.172.4.11]) by mr02.lnh.mail.rcn.net (MOS 3.8.3-GA) with ESMTP id NCA77262; Mon, 26 Mar 2007 08:53:55 -0400 (EDT) Received: from 65-78-26-179.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com (HELO jerusalem.litteratus.org.litteratus.org) ([65.78.26.179]) by smtp01.lnh.mail.rcn.net with ESMTP; 26 Mar 2007 08:53:33 -0500 From: Robert Huff MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <17927.49760.444555.54482@jerusalem.litteratus.org> Date: Mon, 26 Mar 2007 08:53:52 -0400 To: freebsd-questions@freebsd.org In-Reply-To: <460755E6.90004@norden1.com> References: <460755E6.90004@norden1.com> X-Mailer: VM 7.17 under 21.5 (beta27) "fiddleheads" XEmacs Lucid X-Junkmail-Whitelist: YES (by domain whitelist at mr02.lnh.mail.rcn.net) Subject: pkg corrupted 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: Mon, 26 Mar 2007 12:53:57 -0000 dbetts writes: > I am running Freebsd 6.2 Thank you for mentioning this, but the ports system is (more-or-less) separate from the base system. > Somehow my /var/db/pkg has become corrupted. I ran pkgdb -F and > it still didn't fix it. The I did something dumb, I deleted the > /var/db/pkg. I thought I had a backup but I can't find one. Is > there a way to recreate the pkg to reflect what I have already > installed on my system If you have lost the entire contents of /var/db/pkg, then I believ the answer is "No.". > or will I have to reinstall all the packages I know I had on my > system. Yes. Depending on how many ports you had installed, this will be a royal pain. (At least in terms of time spent.) When this happened to me three or four months ago, I ended up looking at the ports distfiles, reverse-mapping them to a port, then building (not upgrading) the port /de novo/. That machine lost the records of 350+ ports; recreating them - even with scripts - took 4 days. Plus another day to rebuild OpenOffice. The good news is the basic functionality of the system is not compromised, and the rebuilding can go on in the background. Remember to log your work, so you can tell if anything didn't build/install and fix it by hand. Robert Huff