tech-pkg archive

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

Re: [HEADS UP] pkgsrc default database directory changed



On Wed, 2 Dec 2020 at 10:28, Thomas Klausner <wiz%netbsd.org@localhost> 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).
>
> This matches the default the bootstrap script had for a long time.
>
> pkgsrc-HEAD will insist on using pkg_install 20200828, which will
> print an error and ask the user to move the existing database to the
> new location. This move is not done automatically by purpose so that
> the administrators will take note.
>
> There is one potential pitfall: you'll have to make sure
> ${PREFIX}/sbin/pkg_* is used and not mixed with /usr/sbin/pkg_* (which
> will default to the old location until -current and the branches are
> updated).
>
> So please make sure your admin user's PATH has ${PREFIX}/sbin before
> /usr/sbin, or copy the new pkg_install tools from ${PREFIX}/sbin to
> /usr/sbin.
>
> There is no change for the existing binary packages, since they do not
> care where the information about the installed packages is stored.

Not wanting to dump more onto releng, but would this be a good reason
to try to get a new release on netbsd-8 and netbsd-9?

(on a related note - thanks to everyone who worked to get this change
and is going to be fielding fallout for a while :)

David


Home | Main Index | Thread Index | Old Index