From owner-freebsd-questions@FreeBSD.ORG Thu Oct 11 21:07:09 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id AB31916A418 for ; Thu, 11 Oct 2007 21:07:09 +0000 (UTC) (envelope-from jamesh@lanl.gov) Received: from mailwasher.lanl.gov (mailwasher.lanl.gov [204.121.3.2]) by mx1.freebsd.org (Postfix) with ESMTP id 614FE13C459 for ; Thu, 11 Oct 2007 21:07:09 +0000 (UTC) (envelope-from jamesh@lanl.gov) Received: from mailrelay1.lanl.gov (mailrelay1.lanl.gov [128.165.4.101]) by mailwasher.lanl.gov (8.13.8/8.13.8/(ccn-5)) with ESMTP id l9BL75eC006318; Thu, 11 Oct 2007 15:07:05 -0600 Received: from oppie-mail.lanl.gov (oppie-mail.lanl.gov [128.165.4.123]) by mailrelay1.lanl.gov (8.13.8/8.13.8/(ccn-5)) with ESMTP id l9BL74w1013535; Thu, 11 Oct 2007 15:07:05 -0600 Received: from [128.165.86.10] (secretariat.lanl.gov [128.165.86.10]) by oppie-mail.lanl.gov (Postfix) with ESMTP id 858CC1F8005; Thu, 11 Oct 2007 15:06:59 -0600 (MDT) From: James To: Kevin Kinsey In-Reply-To: <470E8D3A.8010508@daleco.biz> References: <1192134379.33933.9.camel@secretariat.lanl.gov> <470E8D3A.8010508@daleco.biz> Organization: Los Alamos National Laboratories Date: Thu, 11 Oct 2007 15:07:37 -0600 Message-Id: <1192136857.33933.18.camel@secretariat.lanl.gov> Mime-Version: 1.0 X-Mailer: Evolution 2.10.3 FreeBSD GNOME Team Port X-CTN-5-MailScanner-Information: Please see http://network.lanl.gov/email/virus-scan.php X-CTN-5-MailScanner: Found to be clean X-CTN-5-MailScanner-From: jamesh@lanl.gov X-Spam-Status: No Content-Type: text/plain Content-Transfer-Encoding: 7bit X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Cc: freebsd-questions Subject: Re: I performed an rm -r on /var/lib/pkg X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: jamesh@lanl.gov List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Oct 2007 21:07:09 -0000 On Thu, 2007-10-11 at 15:53 -0500, Kevin Kinsey wrote: > James wrote: > > Call it a moment of sheer stupidity, call it a misremembering, call it > > whatever you want (and I imagine I'll hear a few different ones), but I > > just did an rm -r /var/lib/pkg. > > > > Before I type anything to damage things further, does anyone have any > > suggestions as to how to recover from this? I have other FreeBSD boxes > > available to me, none with the same pkg list, though. I'll be reading > > man pkgdb in the meantime.. > > > I'm guessing you might be Real Tired(tm). Do you mean > /var/db/pkg? > > $ ll /var/lib/pkg > ls: /var/lib/pkg: No such file or directory > > Kevin Kinsey Yes, you're right. On all counts, I'm afraid. But, yes, ultimately. And the more I'm reading man pages, the more I'm thinking that the only solution here will be to reinstall everything. I was wondering if portmaster or something similar might be able to solve this, but it looks like /var/db/pkg is what *everything* refers to. I'm feeling like the least competent user in the world right now. Though it *does* teach me a valuable lesson about backing up. James