From owner-freebsd-hackers@FreeBSD.ORG Fri Apr 23 14:38:13 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 89A1D1065672 for ; Fri, 23 Apr 2010 14:38:13 +0000 (UTC) (envelope-from roberthuff@rcn.com) Received: from smtp02.lnh.mail.rcn.net (smtp02.lnh.mail.rcn.net [207.172.157.102]) by mx1.freebsd.org (Postfix) with ESMTP id E77728FC20 for ; Fri, 23 Apr 2010 14:38:12 +0000 (UTC) Received: from mr08.lnh.mail.rcn.net ([207.172.157.28]) by smtp02.lnh.mail.rcn.net with ESMTP; 23 Apr 2010 10:38:12 -0400 Received: from mx04.lnh.mail.rcn.net (mx04.lnh.mail.rcn.net [207.172.157.54]) by mr08.lnh.mail.rcn.net (MOS 3.10.8-GA) with ESMTP id LOJ68649; Fri, 23 Apr 2010 10:35:36 -0400 (EDT) Received: from 209-6-91-204.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com (HELO jerusalem.litteratus.org.litteratus.org) ([209.6.91.204]) by smtp04.lnh.mail.rcn.net with ESMTP; 23 Apr 2010 10:35:35 -0400 From: Robert Huff MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <19409.45112.41736.174681@jerusalem.litteratus.org> Date: Fri, 23 Apr 2010 10:35:36 -0400 To: "Aryeh M. Friedman" In-Reply-To: <4BCE5ECC.6070202@gmail.com> References: <4BCE5ECC.6070202@gmail.com> X-Mailer: VM 7.17 under 21.5 (beta28) "fuki" XEmacs Lucid X-Junkmail-Whitelist: YES (by domain whitelist at mr08.lnh.mail.rcn.net) Cc: freebsd-hackers@freebsd.org Subject: 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: Fri, 23 Apr 2010 14:38:13 -0000 Aryeh M. Friedman writes: > I acciddentally rm'ed my /var/db/pkg and want to know is it > possible to rgenerate it (I have portmaster and portupgrade > installed) (I'm assuming you have _completely_ deleted the contents of /var/db/pkg.) If you have not deleted /usr/ports/distfiles, this will give you a starting place. Mind you, some of the distfile names bear scant relation to the port names ... but they're usually not that hard to track down. The advice to "start with a big one" - OpenOffice, KDE, etc. - is also sound. Robert Huff (who used this method successfully a couple of years ago)