Upgrading to OpenBSD 7.2
20 October 2022

OpenBSD 7.2 is officially available, so let's perform a system upgrade.

As usual, we can use sysupgrade(8) to upgrade to 7.2 automatically:

# sysupgrade
Be aware, though, that this will fetch and install all available file sets. If you'd prefer to perform an interactive upgrade, you can manually download the latest ramdisk kernel, stick it in your root directory, and boot that instead. Take care to verify its integrity with signify(1).

After the kernel upgrade, make sure you run sysmerge(8) as usual. This will ensure your configuration files are up-to-date:

# sysmerge

After an unattended upgrade, fw_update(8) will run automatically. If you're on a laptop like I am, this step will probably fail since you don't have a network connection. Be sure to run it manually once you're online. Assuming everything went off without a hitch, your system is ready to go. As always, you may always consult the official FAQ.

Recommended system maintenance

I suggest using cron to keep your packages up-to-date. You might also want to consider using it to run fw_update(8) periodically. For example, I check for package updates once a day and for firmware updates once a week.