Search | Running | Sailfish OS | All Posts | About Me

Upgrading NetBSD to 10.1

March 14, 2025 — Nico Cartron

I struggled to upgrade the NetBSD I'm currently running on my RPi (see this article)[ https://www.ncartron.org/netbsd-on-raspberry-pi.html).

When doing

sysupgrade auto https://cdn.netbsd.org/pub/NetBSD/NetBSD-10.1/evbarm-aarch64

I would get

sysupgrade: E: Failed to fetch https://cdn.netbsd.org/pub/NetBSD/NetBSD-10.1/evbarm-aarch64/binary/sets/base.tgz

And indeed, when checking the content of this folder, I could see base.tar.xz but base.tgz was nowhere to be found.

I asked on Mastodon, and Jay very quickly answered that I had to modify /usr/pkg/etc/sysupgrade.conf.

All I had to do was uncomment the # in front of ARCHIVE_EXTENSION, so that it takes into account tar.xz as extension:

ARCHIVE_EXTENSION=tar.xz

Then upon doing sysupgrade again, it worked!

Nice way to fix conflicts

When upgrading an OS, you may have times where you have modified a file, and this file could be overwritten by the upgrade.

FreeBSD has a mechanism to deal with that, where it shows you the diff with <<<< and >>>> but I found the way NetBSD handles it a lot better, see below:

It allows you to edit the file and shows you the problematic lines.

Granted, I'm not sure this would work for files with a lot of modifications, but in the above case (/etc/passwd), this was great!


Tags: FreeBSD


I don't have any commenting system, but email me (nicolas at ncartron dot org) your comments!
If you like my work, you can buy me a coffee!