From owner-freebsd-hackers@FreeBSD.ORG Thu Apr 22 05:43:39 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 EE47B1065672 for ; Thu, 22 Apr 2010 05:43:39 +0000 (UTC) (envelope-from dougb@FreeBSD.org) Received: from mail2.fluidhosting.com (mx23.fluidhosting.com [204.14.89.6]) by mx1.freebsd.org (Postfix) with ESMTP id 7DD458FC0C for ; Thu, 22 Apr 2010 05:43:39 +0000 (UTC) Received: (qmail 12009 invoked by uid 399); 22 Apr 2010 05:43:38 -0000 Received: from localhost (HELO ?192.168.0.145?) (dougb@dougbarton.us@127.0.0.1) by localhost with ESMTPAM; 22 Apr 2010 05:43:38 -0000 X-Originating-IP: 127.0.0.1 X-Sender: dougb@dougbarton.us Message-ID: <4BCFE209.20501@FreeBSD.org> Date: Wed, 21 Apr 2010 22:43:37 -0700 From: Doug Barton Organization: http://SupersetSolutions.com/ User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4 MIME-Version: 1.0 To: "Aryeh M. Friedman" References: <4BCE5ECC.6070202@gmail.com> In-Reply-To: <4BCE5ECC.6070202@gmail.com> X-Enigmail-Version: 1.0.1 OpenPGP: id=1A1ABC84 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 05:43:40 -0000 On 4/20/2010 7:11 PM, 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) Portmaster certainly can't do this, it uses the information from /var/db/pkg. I'm not sure if portupgrade can do it or not. Your most likely course of success is to generate a list of ports that you know you're using ("root" and "leaf" ports in portmaster terminology), back up any config or other key files from /usr/local, then delete everything and reinstall. Good luck, Doug -- ... and that's just a little bit of history repeating. -- Propellerheads Improve the effectiveness of your Internet presence with a domain name makeover! http://SupersetSolutions.com/