FreeBSD 13.2 Rel → 13.3 Rel へアップグレード

7 May 2024

FreeBSD 13.2 Rel → 13.3 Rel へアップグレード

FreeBSD 14.0 Rel は 13.2 Relからのアップグレードにはいささかリスクが高いので当面 13.x Relで使ってみたいと思う そのため、今回は 13.3 Relのアップグレードの手順を書いてみた ルートユーザーでログインして作業を進める

1.例のコマンド freebsd-update -r 13.3-RELEASE upgrade を実行する

[root@sub3 ~]# freebsd-update -r 13.3-RELEASE upgrade

ファイルのアップデートが終わったら・・・。

ここで定番、/etc/groupファイルや/etc/passwdファイルなどの引き継ぎと訂正

各ファイルにコメントをインストーラーが記入しておいてくれるので必要に応じて編集

2.終わったらカーネルのインストール

[root@sub3 ~]# freebsd-update install

リブートする

[root@sub3 ~]# reboot

3.成功してるかバージョン確認

[root@sub3 ~]# freebsd-version -k

13.3-RELEASE-p1

13.3-RELEASE-p1になってる

[root@sub3 ~]# freebsd-version -kur

13.3-RELEASE-p1

13.3-RELEASE-p1

13.2-RELEASE-p11

4.セキュリティ等のアップデートがないか念の為freebsd-updateコマンドを行う

[root@sub3 ~]# freebsd-update fetch

src component not installed, skipped

You have a partially completed upgrade pending

Run '/usr/sbin/freebsd-update install' first.

Run '/usr/sbin/freebsd-update fetch -F' to proceed anyway.

freebsd-update installがファーストで、どの後にfreebsd-update fetch -Fをやれということなので

そのようにこのまま続行

[root@sub3 ~]# freebsd-update install

src component not installed, skipped

Installing updates...rm: ///usr/include/c++/v1/__tuple: is a directory

rm: ///usr/include/c++/v1/__string: is a directory

Restarting sshd after upgrade

Performing sanity check on sshd configuration.

Stopping sshd.

Performing sanity check on sshd configuration.

Starting sshd.

Scanning //usr/share/certs/blacklisted for certificates...

Scanning //usr/share/certs/trusted for certificates...

Scanning //usr/local/share/certs for certificates...

done.

[root@sub3 ~]# freebsd-update fetch -F

src component not installed, skipped

Looking up update.FreeBSD.org mirrors... 3 mirrors found.

Fetching metadata signature for 13.3-RELEASE from update2.freebsd.org... done.

Fetching metadata index... done.

Fetching 2 metadata patches.. done.

Applying metadata patches... done.

Fetching 2 metadata files... done.

Inspecting system... done.

Preparing to download files... done.

No updates needed to update system to 13.3-RELEASE-p2.

リブートする

[root@sub3 ~]# reboot

5.最後のバージョン確認

[root@sub3 ~]# freebsd-version -k

13.3-RELEASE-p1

[root@sub3 ~]# freebsd-version

13.3-RELEASE-p2

どうも 13.3-RELEASE-p2 が最新のようだ