Deleted /var/db/pkg

Robert Huff roberthuff at rcn.com
Tue Sep 18 05:57:52 PDT 2007


nikolaj.thygesen at 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
	


More information about the freebsd-questions mailing list