On Mon, Dec 07, 2020 at 06:53:57PM +0700, Robert Elz wrote: > Date: Mon, 7 Dec 2020 11:38:14 +0100 > From: Thomas Klausner <w...@gatalith.at> > Message-ID: <20201207103814.xbnkdiwpzo6xl...@yt.nih.at> > > | > 2) requires a more recent pkg_install than the one from NetBSD 9.1 > | > | That is correct. If you are on any currently supported release you > | will have to manually update pkg_install first before using pkgsrc. > > Actually, no, that shouldn't be needed - something needs to manually be > done, but it doesn't need to be that one, (it is non trivial). > > Either symlinking the old pgkdb to the new one, or adding > PKG_DBDIR=/usr/pkg/pkgdb > (or whevever it will be placed) in /etc/pkg_install.conf (which probably > doesn't exist, so that one line will be all it contains .. the line should > be at the left margin - might not be required, but works if it is). > > Either of those is much easier than replacing the old pkg_install just > for this change. After doing either (on NetBSD) the system pkg_install > set of tools will all work just fine with the relocated pkg database.
While that is true, pkgsrc will insist on using pkg_install 20200828 or newer, so if you want to build packages from source, you'll still have to update your installed pkg_install. Thomas