From owner-freebsd-questions@FreeBSD.ORG Thu Oct 11 21:23:54 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 846A516A420 for ; Thu, 11 Oct 2007 21:23:54 +0000 (UTC) (envelope-from kdk@daleco.biz) Received: from ezekiel.daleco.biz (southernuniform.com [66.76.92.18]) by mx1.freebsd.org (Postfix) with ESMTP id 1634513C494 for ; Thu, 11 Oct 2007 21:23:53 +0000 (UTC) (envelope-from kdk@daleco.biz) Received: from localhost (localhost [127.0.0.1]) by ezekiel.daleco.biz (8.13.8/8.13.8) with ESMTP id l9BLNrUP065716; Thu, 11 Oct 2007 16:23:53 -0500 (CDT) (envelope-from kdk@daleco.biz) X-Virus-Scanned: amavisd-new at daleco.biz Received: from ezekiel.daleco.biz ([127.0.0.1]) by localhost (ezekiel.daleco.biz [127.0.0.1]) (amavisd-new, port 10024) with LMTP id avr0Enwa03-X; Thu, 11 Oct 2007 16:23:49 -0500 (CDT) Received: from archangel.daleco.biz (dsl.daleco.biz [209.125.108.70]) by ezekiel.daleco.biz (8.13.8/8.13.8) with ESMTP id l9BLNjcx065705; Thu, 11 Oct 2007 16:23:46 -0500 (CDT) (envelope-from kdk@daleco.biz) Message-ID: <470E945B.4060309@daleco.biz> Date: Thu, 11 Oct 2007 16:23:39 -0500 From: Kevin Kinsey User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.8.1.2) Gecko/20070418 SeaMonkey/1.1.1 MIME-Version: 1.0 To: jamesh@lanl.gov References: <1192134379.33933.9.camel@secretariat.lanl.gov> <470E8D3A.8010508@daleco.biz> <1192136857.33933.18.camel@secretariat.lanl.gov> In-Reply-To: <1192136857.33933.18.camel@secretariat.lanl.gov> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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 List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Oct 2007 21:23:54 -0000 James wrote: > 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. Well, first off, be glad you weren't in / with your "rm". :-) I'll go out on a limb (IANAE), and suggest to you that /var/db/pkg is very important when installing, removing, and upgrading ports (or "3rd party software"), but it's not critical to the moment by moment operating of such ports. So, it's quite possible that everything can wait until you get some sleep. However, you are probably right about "reinstall everything" being the course of action to take. Another possibility: get another box, install everything on that, and copy /var/db/pkg over. You will probably face some issues with consistency in the package database as a result. This will cause a few problems when you get ready to update in the future; however, you can't really "get stuck" too badly as a deinstall/reinstall will usually fix such things. ... then, of course, you have the possibility that a dependency will not work with the new program. This sort of thing bites in any number of ways, especially after a reboot. I'd probably try to wait for a period of relatively low demand on the box, then do the reinstalling. And get some sleep first ;-) But, as I said, IANAE. Kevin Kinsey -- One way to make your old car run better is to look up the price of a new model.