On 2019-11-01, Chris Bennett <cpb_misc@bennettconstruction.us> wrote:
> NO. You need to use pkg_add -u -Dsnap.
Normally when pkg_add doesn't have a full path to the package directory
(e.g. PKG_PATH=http://mirror/pub/OpenBSD/6.6/packages/amd64/)
it constructs it from a hostname in PKG_PATH or a partial path in
/etc/installurl. To do that it has to add e.g. 6.6/packages/amd64
to the partial path.
It decides whether to use 6.6/ (or other version number) or snapshots/
based on whether the current version is a snapshot or not (from the
"sysctl kern.version" output).
All that -Dsnap does is say "use snapshots/ even if this looks like
it's a release (no suffix after "6.6"). You only ever need it if you're
a) running snapshota and b) are in the brief period in the run-up to
release where the version number has no suffix.
> Occasionally you might need to use sysupgrade -s. That happened to me
> from one -current to another.
sysupgrade -s is sysupgrade's equivalent to pkg_add -Dsnap. So again you
would only ever need it directly in the run-up to release.
No comments:
Post a Comment