Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 18 Sep 2007 08:57:45 -0400
From:      Robert Huff <roberthuff@rcn.com>
To:        freebsd-questions@freebsd.org
Subject:   Deleted /var/db/pkg
Message-ID:  <18159.52041.709022.980773@jerusalem.litteratus.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>

next in thread | previous in thread | raw e-mail | index | archive | help

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
	



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?18159.52041.709022.980773>