From owner-freebsd-questions@FreeBSD.ORG Tue Sep 18 12:57:51 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 5077516A419 for ; Tue, 18 Sep 2007 12:57:51 +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 F0EEC13C457 for ; Tue, 18 Sep 2007 12:57:50 +0000 (UTC) (envelope-from roberthuff@rcn.com) Received: from mr02.lnh.mail.rcn.net ([207.172.157.22]) by smtp02.lnh.mail.rcn.net with ESMTP; 18 Sep 2007 08:57:50 -0400 Received: from smtp01.lnh.mail.rcn.net (smtp01.lnh.mail.rcn.net [207.172.4.11]) by mr02.lnh.mail.rcn.net (MOS 3.8.3-GA) with ESMTP id NUH14522; Tue, 18 Sep 2007 08:57:49 -0400 (EDT) Received: from 65-78-26-179.c3-0.smr-ubr1.sbo-smr.ma.cable.rcn.com (HELO jerusalem.litteratus.org.litteratus.org) ([65.78.26.179]) by smtp01.lnh.mail.rcn.net with ESMTP; 18 Sep 2007 08:57:45 -0400 From: Robert Huff MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18159.52041.709022.980773@jerusalem.litteratus.org> Date: Tue, 18 Sep 2007 08:57:45 -0400 To: freebsd-questions@freebsd.org In-Reply-To: <8980.80.80.2.75.1190116887.squirrel@webmail1.one.com> References: <8980.80.80.2.75.1190116887.squirrel@webmail1.one.com> X-Mailer: VM 7.17 under 21.5 (beta28) "fuki" XEmacs Lucid X-Junkmail-Whitelist: YES (by domain whitelist at mr02.lnh.mail.rcn.net) Subject: Deleted /var/db/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: Tue, 18 Sep 2007 12:57:52 -0000 nikolaj.thygesen@diamondbox.dk writes: > Suppose you deleted /var/db/pkg by accident :( What would you > do to get it back?? The literal "getting it back" involves a lot of typing, or some non-tivial script work. Figuring out what to get back ... look in /usr/ports/distfiles. While the origin port is not always apparent (libraries and perl modules are particular offenders) it's usually not hard to figure out what maps to what. And the trick is to start at the bottom: pick a massive end-user application like FireFox or (even better) OpenOffice, and let it pull in the dependecies. (Mind you, that will take hours and could take days ut it will work.) Robert "been there, done that" Huff