pkgsrc-Users archive

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

Re: Initialize pkgdb on fresh NetBSD installation



On Fri, 24 Jan 2020 at 10:31, Aleksey Cheusov <cheusov%tut.by@localhost> wrote:
>
> After fresh installation of NetBSD directory /var/db/pkg does not exist.
> What is the correct way to initialize pkgdb?
>

My bootstrap created this on mk.conf:
PKG_DBDIR= /usr/pkg/pkgdb

$ grep pkgdbdir pkgsrc/current/pkgsrc/bootstrap/bootstrap|grep prefix
cd / && tar -hcf "${binary_kit}" .$prefix .$pkgdbdir .$etc_mk_conf
cd / && tar -hcf - .$prefix .$pkgdbdir .$etc_mk_conf | gzip >
"${binary_gzip_kit}"
[ -z "$pkgdbdir" ] && pkgdbdir=${prefix}/pkgdb


-- 
Ottavio Caruso


Home | Main Index | Thread Index | Old Index