From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 22 13:05:04 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 45332106566B for ; Thu, 22 Apr 2010 13:05:04 +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 30C858FC12 for ; Thu, 22 Apr 2010 13:05:03 +0000 (UTC) Received: from night.db.net (localhost [127.0.0.1]) by diana.db.net (Postfix) with ESMTP id EF61722857; Thu, 22 Apr 2010 06:46:15 -0600 (MDT) Received: by night.db.net (Postfix, from userid 100) id 0580733C2E; Thu, 22 Apr 2010 08:49:32 -0400 (EDT) Date: Thu, 22 Apr 2010 08:49:32 -0400 From: Diane Bruce To: "Aryeh M. Friedman" Message-ID: <20100422124932.GA21661@night.db.net> References: <4BCE5ECC.6070202@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4BCE5ECC.6070202@gmail.com> 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 13:05:04 -0000 On Tue, Apr 20, 2010 at 10:11:24PM -0400, Aryeh M. Friedman wrote: > I acciddentally rm'ed my /var/db/pkg and want to know is it possible to > rgenerate it (I have portmaster and portupgrade installed) You would have to write a script which went through each file in /usr/local/bin and /usr/local/lib (mostly sufficient) and examined every single pkg-plist looking for the corresponding file. Then you know what port the file was generated by. Needless to say, this would be somewhat horrible. - Diane -- - db@FreeBSD.org db@db.net http://www.db.net/~db