OpenBSD Upgrade 6.7 To 6.8

nabbisen - Dec 5 '20 - - Dev Community

Summary

The latest OpenBSD OS is now 6.8
which was released on 18 Oct 2020.

[What's New] (https://www.openbsd.org/68.html#new)

Moody artwork 😊

openbsd 6.8 artwork

Almost all what to do is what nice sysupgrade which first appeared in 6.6 will do automatically and thankfully.

By the way, httpd.conf might have to be paid attention to, because the grammar about fastcgi has been changed... 👀


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

$ # validate available disk size of /usr is greater than 1.1GB
$ df -h
Enter fullscreen mode Exit fullscreen mode

2. Upgrade

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

3. Post-upgrade

$ 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!
Enter fullscreen mode Exit fullscreen mode

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

Check the documentation if you use some of:

5. Remove old files

$ 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
Enter fullscreen mode Exit fullscreen mode

The descriptions are here.

6. Special packages

Check the documentaion if you use some of:

  • net/isc-bind
  • www/goaccess

Wish you happy time with OBSD 😊

. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .