Deleted /var/db/pkg
    RW 
    mlt01 at mlists.homeunix.com
       
    Tue Sep 18 08:50:05 PDT 2007
    
    
  
On Tue, 18 Sep 2007 16:46:03 +0400
Andrew Pantyukhin <infofarmer at FreeBSD.org> wrote:
> On Tue, Sep 18, 2007 at 02:01:27PM +0200,
> nikolaj.thygesen at diamondbox.dk wrote:
> > Hi list,
> > 
> >     Suppose you deleted /var/db/pkg by accident :( What would you
> > do to get it back??
> 
> I'd go one of these ways:
> - rm -rf /usr/local ...
> - rebuild all the packages I need in a chroot, then pkg_add them
>
Or do both, so you can build at your convenience, and have a full set of
packages ready when you delete /usr/local/.
I think in the long-term removing /usr/local may be the easiest thing
to do - it's a lot easier to know what you need than what you had. And
it gets rid of any stray files from miss-matched packing-lists.
    
    
More information about the freebsd-questions
mailing list