OpenBSD Upgrade 6.7 to 6.8

Table of contents

Summary Summary

The latest OpenBSD (opens in a new tab) OS is now 6.8 (opens in a new tab) ✨ which was released on 18 Oct 2020.

openbsd release

Moody artwork 😊

openbsd 6.8 artwork

Almost all what to do is what nice sysupgrade (opens in a new tab) which first appeared in 6.6 will do automatically and thankfully.

By the way, httpd.conf (opens in a new tab) might have to be paid attention to, because the grammar about fastcgi has been changed (opens in a new tab)… 👀


Tutorial Tutorial

Here is a step-by-step guide for the upgrade with a set of the commands to run.

  1. Pre-upgrade
  2. Upgrade
  3. Post-upgrade
  4. Follow configuration changes
  5. Remove old files
  6. Special packages
🌼 🐝 🌼

1. Pre-upgrade 1. Pre-upgrade

console
$ # validate available disk size of /usr is greater than 1.1GB
$ df -h

2. Upgrade 2. Upgrade

console
$ doas sysupgrade
$ # Reboot automatically,
$ # and the sysupgrade process continues.
$ # The login message will be "OpenBSD 6.8 (GENERIC)" next time.

3. Post-upgrade 3. Post-upgrade

console
$ doas sysmerge
$ # There is a case when something happens, which is not always. In my case, I had sometimes to merge /etc/login.conf and so on.

$ doas syspatch; doas pkg_add -u
$ doas reboot
$ # Almost done!

What to do after pkg_add -u is due to the server. For example, in one of my servers, running doas crontab -u _mailman /usr/local/lib/mailman/cron/crontab.in was required to update /var/cron/tabs/_mailman.

4. Follow configuration changes 4. Follow configuration changes

Check the official documentation (opens in a new tab) if you use some of:

5. Remove old files 5. Remove old files

console
$ doas rm -f /usr/lib/libperl.a
$ doas rm /usr/X11R6/lib/libxkbui.* \
     /usr/X11R6/lib/pkgconfig/xkbui.pc \
     /usr/X11R6/include/X11/extensions/XKBui.h

The descriptions are here (opens in a new tab).

6. Special packages 6. Special packages

Check the documentaion (opens in a new tab) if you use some of:

  • net/isc-bind
  • www/goaccess

Wish you happy time with OBSD 😊

More on: Upgrade and maintain OpenBSD

OBSD Solutions

OBSD Solutions: OpenBSD consulting and support by Scqr, Reflerd Inc. (opens in a new tab)

Comments and feedback are welcome.