Subject: Re: /var/db/pkg
To: None <ingolf@jena-optronik.de>
From: Alistair G. Crooks <agc@ftp.netbsd.org>
List: current-users
Date: 05/23/2000 04:10:51
> On Tue, May 23, 2000 at 12:54:22AM -0700, Alistair G. Crooks wrote:
> >      PKG_DBDIR  The standard package database directory, /var/db/pkg, can be
> >                 overridden by specifying an alternative directory in the
> >                 PKG_DBDIR environment variable.
> 
> Is it safe to just move an already existing /var/db/pkg to
> the new location to preserve already installed packages (in
> contrast to rebuilding the whole database)?

Yes.

However, if you're a disbelieving type, why don't you try copying
the /var/db/pkg directory to your desired location (using pax -rwpe,
eek, wrong thread), rename /var/db/pkg to be /var/db/pkg-in-disguise,
set your environment variables and test it out...

Regards,
Alistair