It appears you are not root
. Use su
or if you have installed it, (highly recommended) doas
or maybe sudo
. That should solve the "command not found" problem unless your $PATH is not configured correctly.
You need a file, /usr/pkg/etc/sysupgrade.conf
which contains the KERNEL as well as everything else sysupgrade needs to know.
Mine looks like this:
# $NetBSD: default.conf,v 1.2 2012/10/11 00:16:46 jmmv Exp $
# Configuration of automatic system upgrades by sysupgrade(8).
#
# See sysupgrade.conf(5) for details on the syntax of this file and the
# meaning of the configuration variables. Note that not all the supported
# configuration variables are listed in this sample configuration file.
# Path to the release files (local path or remote URL).
#RELEASEDIR="ssh://me@builder.example.net/home/sysbuild/release/$(uname -m)"
#RELEASEDIR="/home/sysbuild/release/$(uname -m)"
RELEASEDIR="ftp://ftp.NetBSD.org/pub/NetBSD/NetBSD-9.3/evbarm-aarch64"
# Upgrade to the latest snapshot of the current branch
#RELEASEDIR="https://nycdn.netbsd.org/pub/NetBSD-daily/HEAD/latest/$(uname -m)"
# Upgrade to the latest snapshot of a stable branch
#RELEASEDIR="https://nycdn.netbsd.org/pub/NetBSD-daily/netbsd-9/latest/$(uname -m)"
# Name of the kernel to be installed.
#KERNEL=AUTO # Guess from /netbsd (requires config(1)).
KERNEL=GENERIC64
# Whitespace-separated list of sets to install.
SETS=AUTO # Guess from /etc/mtree/set.* files.
# Whitespace-separated list of postinstall(8) checks to automatically fix.
POSTINSTALL_AUTOFIX="obsolete"
# Whether to run etcupdate or not as part of an upgrade.
#
# Running etcupdate is the only interactive step in the upgrade process, so
# setting this variable to 'no' effectively makes upgrades unattended. You
# can later run etcupdate at a later step by hand.
#ETCUPDATE=no
# Whether to delete the downloaded files after an upgrade or not.
#
# If you set ETCUPDATE=no, you will most likely want to disable
# auto-cleaning as well. The reason for this is that, if you want to later
# do "sysupgrade etcupdate" using the same etc.tgz file downloaded during
# the upgrade, you will need the same etc.tgz file to be present.
#AUTOCLEAN=no
# Archive file extension of the sets. For now it can be either 'tgz' or
# 'tar.xz'.
ARCHIVE_EXTENSION=tar.xz
I thought that this was automatically installed, but perhaps you have to cp /usr/pkg/share/examples/sysupgrade/default.conf /usr/pkg/etc/sysupgrade.conf
/usr/pkg/share/examples is a good place to look for files that should be used with packages.