OpenBSD 7.8 を 7.9 へ アップグレード

OpenBSD 7.8 to 7.9 Upgrade Guide

はじめに / Introduction

OpenBSD プロジェクトから 2026 年 5 月 19 日に OS の 7.9 がリリースされました 🌷 60 回目のリリースに当たります。 What’s New | Changelog 本記事で OpenBSD 7.8 を 7.9 にアップグレードする手順を説明します。各手順はすばらしい 公式ガイド に基づいています。

The OpenBSD project released version 7.9 on May 19, 2026 🌷. This marks the 60th release. What’s New | Changelog This article explains the steps to upgrade OpenBSD 7.8 to 7.9. Each step is based on the excellent official guide.


チュートリアル / Tutorial

実行するコマンド一式を示しながら、ステップ・バイ・ステップ形式で書いた、アップグレード用のガイドです。 🌷 🐡 🌅

This is a step-by-step upgrade guide that provides the complete set of commands to execute. 🌷 🐡 🌅


1. アップグレード前準備: 検証とカスタイマイズ / 1. Pre-upgrade Preparation: Verification and Customization

公式のチュートリアルには Before using any upgrade method セクションが設けられています。アップグレード方法としては sysupgrade を使うのが、たいていの場合、良い選択になるでしょう。

The official tutorial includes a Before using any upgrade method section. Using sysupgrade is generally the best choice for the upgrade method.

ディスク空き容量の確認 / Checking Disk Space

/usr に 1.1GB 以上の空きがあることが必要です。 You need at least 1.1GB of free space in /usr.

$ df -h
Filesystem     Size    Used   Avail Capacity  Mounted on
(...)
/dev/sd0e      7.8G    1.8G    5.6G    25%    /usr

OK のようです :) / Looks like it’s OK :)

現在の利用内容がアップグレード結果に適合することの確認 / Verifying Compatibility

設定と構文の変更特別なパッケージ を確認しましょう。後者に関して、今回は PostgreSQL のメジャーアップデートが含まれています。18.1 にアップデートされます。

Check the Configuration and syntax changes and Special packages. Regarding the latter, this release includes a major update for PostgreSQL to 18.1.

バックアップ (必要な場合) / Backup (If necessary)

適宜、事前にバックアップを取得しておきましょう。 Make sure to take a backup beforehand if necessary.

アップグレード内容のカスタマイズ (必要な場合) / Customizing the Upgrade (If necessary)

ここは参照用であり、標準のアップグレードではスキップできます。/auto_upgrade.conf をレスポンス・ファイルとして利用できます。 This is for reference and can be skipped for standard upgrades. You can use /auto_upgrade.conf as a response file.


2. sysupgrade によるアップグレード / 2. Upgrading via sysupgrade

準備は良いですか。* 注意: 以下のコマンド sysupgrade は、ひとたび実行すると中断はできません。 Are you ready? * Note: The following sysupgrade command cannot be interrupted once started.

準備ができたら、以下のコマンドを実行しましょう。実行するのはこれだけです: Once ready, execute the following command. This is all you need to do:

$ doas sysupgrade

以下のように出力されるでしょう: / You will see output similar to this: (省略 / Omitted)

マシンの再起動とシステムのアップグレードが行われます。ふたたび再起動が行われて、sysmerge が自動で実行されます。それから sshd 等のデーモンが、従来のように起動されます。“Checking for available binary patches…” と出力されて、もし対象が存在すれば “Run syspatch(8) to install:” と表示されるでしょう。

The machine will reboot and perform the system upgrade. It will reboot again, and sysmerge will run automatically. Then, daemons like sshd will start as usual. You may see “Checking for available binary patches…” and if applicable, “Run syspatch(8) to install:“.


3. アップグレード後の操作: sysmerge (必要に応じて) / 3. Post-upgrade: sysmerge (If necessary)

公式ドキュメントに アップグレード後に行うこと が書かれています。大いに参考になるでしょう。 The official documentation contains After upgrading, which will be very helpful.

In some cases, configuration files cannot be modified automatically. Run # sysmerge to check and perform these configuration changes. ここで言われているのは、手動で sysmerge を実行することが必要な場合もある、ということです。


4. syspatch の適用 (スキップ可能) / 4. Applying syspatch (Optional)

syspatch は重要なコマンドです。OpenBSD から、必要と判明し次第都度、継続的に提供される公式のバイナリ・パッチです。 syspatch is an important command. It applies official binary patches provided by OpenBSD as soon as they are deemed necessary.

$ doas syspatch

5. パッケージのアップデート / 5. Updating Packages

次のコマンドはマシンにインストールされているすべてのパッケージをアップデートします: The following command updates all packages installed on the machine:

$ doas pkg_add -u

6. 設定と構文の変更 / 6. Configuration and Syntax Changes

必要に応じて conf を更新して、設定と構文の変更 に書かれている内容を適用しましょう。 Update your configuration files as needed and apply the changes described in Configuration and syntax changes.


7. 古くなったファイルの削除 / 7. Removing Obsolete Files

公式チュートリアルの 削除すべきファイル に書かれていることを行うだけです。今回の対象はありません。 Simply follow the instructions in Obsolete files in the official tutorial. There are none for this release.


8. 特別なパッケージ / 8. Special Packages

公式チュートリアルの 特別なパッケージ を確認しましょう。 Check the Special packages section of the official tutorial.


9. 再起動 / 9. Reboot

ゴールが見えて来ました ! 最後に必須では無いですが再起動しておくと良いしれません: We’ve reached the goal! Finally, although not strictly required, it’s a good idea to reboot:

$ doas reboot

おわりに / Conclusion

新しいシステムとあなたが長く楽しい時間を過ごせますように :) OpenBSD プロジェクトとコミュニティへの深い感謝を込めつつ。 May you have a long and enjoyable time with your new system :) With deep gratitude to the OpenBSD project and community.