From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 22 19:24:57 2010 Return-Path: Delivered-To: freebsd-hackers@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 22678106566B for ; Thu, 22 Apr 2010 19:24:57 +0000 (UTC) (envelope-from db@db.net) Received: from diana.db.net (diana.db.net [66.113.102.10]) by mx1.freebsd.org (Postfix) with ESMTP id 0C11B8FC14 for ; Thu, 22 Apr 2010 19:24:56 +0000 (UTC) Received: from night.db.net (localhost [127.0.0.1]) by diana.db.net (Postfix) with ESMTP id 9CFEA22857; Thu, 22 Apr 2010 13:21:37 -0600 (MDT) Received: by night.db.net (Postfix, from userid 100) id 3749D33C2E; Thu, 22 Apr 2010 15:24:55 -0400 (EDT) Date: Thu, 22 Apr 2010 15:24:55 -0400 From: Diane Bruce To: bf1783@gmail.com Message-ID: <20100422192455.GA26153@night.db.net> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4.2.3i Cc: freebsd-hackers@FreeBSD.org Subject: Re: regenerating /var/db/pkg X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Apr 2010 19:24:57 -0000 On Thu, Apr 22, 2010 at 06:48:43PM +0000, b. f. wrote: > Doug Barton wrote: > >On 4/20/2010 7:11 PM, Aryeh M. Friedman wrote: ... > find /usr/local -type f -print0 | xargs -0 pkg_which -v | fgrep '?' libchk would also be useful. ... > > But as Doug suggests, a full cleanup of PREFIX/LOCALBASE and > reinstallation of all leaf packages may be easier than a > reconstruction of /var/db/pkg. ... I also agree with Doug here. The key thing is to have a record or a good idea of what you had installed in the first place. I reiterate, having a thumb drive with copies of your /etc,/var/db/pkg /usr/local/etc, you get the idea, is very useful to have around. - Diane __ - db@FreeBSD.org db@db.net http://www.db.net/~db