OpenBSD Upgrade Instructions

Published on 2022-09-07.

ssh myopenbsdbox   # log-in to your machine
doas sysupgrade    # will log you out, go drink some coffee
ssh myopenbsdbox   # log-in to the upgraded machine
doas sysmerge      # if any, solve merge conflicts of your cfg files
doas pkg_add -u    # if any, upgrade local packages
doas sysclean      # print obsolete files that you may want to remove

(Source)