Rebuilding /var/db/pkg

John Nielsen lists at jnielsen.net
Thu May 25 17:03:11 PDT 2006


Quoting Robert Huff <roberthuff at rcn.com>:

>
> Robertsen A. Riehle writes:
>
>>  Say that the /var/db/pkg directory had been recursively erased
>>  off of a workstation that had ~300 packages on it.  And, let's
>>  hypothetically say that this workstation's ports tree was up to
>>  date as of yesterday.  Is there any hope of rectifying this or is
>>  this workstation is a static ports state forever???
>
> 	1) Is there no back-up?
> 	2) Unless you clear it regularly, look in
> /usr/ports/distfiles.  On my system, I'd also check pkgtools.conf.
> Start with things with a lot of dependencies (OpenOffice, Mozilla,
> KDE/gnome, Java, Emacs, etc.) and reinstall by hand.

Also if you act before the weekly(?) periodic script rebuilds the 
locate database, you could use the output of "locate /var/db/pkg" to 
help you determine what was there.

JN


More information about the freebsd-questions mailing list