Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: [HEADS UP] pkgsrc default database directory changed



On Sat, Dec 05, 2020 at 10:32:57AM -0800, John Nemeth wrote:
> On Dec 5, 15:14, Thomas Klausner wrote:
> } On Wed, Dec 02, 2020 at 11:28:41AM +0100, Thomas Klausner wrote:
> } > The new default for the pkgsrc database (which contains information
> } > about all installed packages) in pkgsrc-HEAD has changed from
> } > /var/db/pkg to ${PREFIX}/pkgdb (so usually /usr/pkg/pkgdb).
> } 
> } martin@ just pointed out to me that I had overlooked
> } /var/db/pkg.refcount (to path to which defaults to
> } ${PKG_DBDIR}.refcount, so it also moved).
> } 
> } So the complete instructions as of now are:
> } 
> } cd /usr/pkgsrc/pkgtools/pkg_install
> } make USE_CWRAPPERS=no install
> } cd /usr/pkg/sbin && install -c pkg_add pkg_admin pkg_create pkg_delete pkg_info /usr/sbin/
> } mv /var/db/pkg /usr/pkg/pkgdb
> } mv /var/db/pkg.refcount /usr/pkg/pkgdb.refcount
> 
>      Are there instructions on changes needed to pbulk setups?

I've collected specific advice outside of the basic ones here:

http://pkgsrc.org/news/pkgdb-change/

For pbulk in particular:
* make sure the pkg_install in your sandbox is up-to-date
* update the pbulk.conf file for the new pkgdb location (pkgdb=/usr/pkg/pkgdb)

Cheers,
 Thomas


Home | Main Index | Thread Index | Old Index