root@ykla:/home/ykla # freebsd-update upgrade -r 13.2-RELEASE
src component not installed, skipped
Looking up update.FreeBSD.cn mirrors... none found.
Fetching public key from update.FreeBSD.cn... done.
Fetching metadata signature for 13.1-RELEASE from update.FreeBSD.cn... done. #这里我使用了 FreeBSD.cn 镜像站,其实换不换这个源速度都差不多,因为都是零碎文件,如果你更新错误,建议换源看看
Fetching metadata index... done.
Fetching 2 metadata files... done.
Inspecting system... done.
The following components of FreeBSD seem to be installed:
kernel/generic kernel/generic-dbg world/base world/lib32
The following components of FreeBSD do not seem to be installed:
world/base-dbg world/lib32-dbg
Does this look reasonable (y/n)? y #在这里输入 y 回车即可,在检查基本组件的安装情况。
Fetching metadata signature for 13.2-RELEASE from update.FreeBSD.cn... done.
Fetching metadata index... done.
Fetching 1 metadata patches. done.
Applying metadata patches... done.
Fetching 1 metadata files... done.
Inspecting system... #这里在检查系统,需要等待约 10 分钟。
Fetching files from 13.1-RELEASE for merging... done.
Preparing to download files... #这里在准备要下载的文件,需要等待约 15 分钟。
Fetching 5614 #这里需要等待约 3 分钟。注意,当跨版本更新时,有时候需要等待 5 小时会更长时间,都是正常的。
patches.....10....20....30....40....50....60....70....80....90....100....110....120....130....140....150....160....170....180....190....200....210....220....230....240....250....260....270....280....290....300....310....320....330....340....350....360....370....380....390....400....
…………以下省略………………
....5260....5270....5280....5290....5300....5310....5320....5330....5340....5350....5360....5370....5380....5390....5400....5410....5420....5430....5440....5450....5460....5470....5480....5490....5500....5510....5520....5530....5540....5550....5560....5570....5580....5590....5600....5610.. done.
Applying patches... #应用补丁,需要等待约 10 分钟
Applying patches... done.
Fetching 494 files... ....10....20....30....40....50....60....70....80....90....100....110....120....130....140....150....160....170....180....190....200....210....220....230....240....250....260....270....280....290....300....310....320....330....340....350....360....370....380....390....400....410....420....430....440....450....460....470....480....490.. done.
Attempting to automatically merge changes in files... done.
The following changes, which occurred between FreeBSD 13.1-RELEASE and
FreeBSD 13.2-RELEASE have been merged into /etc/passwd:
--- current version
+++ new version
@@ -1,7 +1,5 @@
-# $FreeBSD$
-#
root:*:0:0:Charlie &:/root:/bin/csh
toor:*:0:0:Bourne-again Superuser:/root:
daemon:*:1:1:Owner of many system processes:/root:/usr/sbin/nologin
operator:*:2:5:System &:/:/usr/sbin/nologin
bin:*:3:7:Binaries Commands and Source:/:/usr/sbin/nologin
Does this look reasonable (y/n)? #输入 y 回车,这里在确认系统文件的变动。
The following files will be removed as part of updating to
13.2-RELEASE-p0:
/boot/kernel/iwlwifi-Qu-b0-hr-b0-68.ucode.ko
/boot/kernel/iwlwifi-Qu-b0-jf-b0-68.ucode.ko
/boot/kernel/iwlwifi-Qu-c0-hr-b0-68.ucode.ko
/boot/kernel/iwlwifi-Qu-c0-jf-b0-68.ucode.ko
/boot/kernel/iwlwifi-QuZ-a0-hr-b0-68.ucode.ko
/boot/kernel/iwlwifi-QuZ-a0-jf-b0-68.ucode.ko
/boot/kernel/iwlwifi-cc-a0-68.ucode.ko
/boot/kernel/iwlwifi-so-a0-gf-a0-68.ucode.ko
/boot/kernel/iwlwifi-so-a0-gf4-a0-68.ucode.ko
/boot/kernel/iwlwifi-so-a0-hr-b0-68.ucode.ko
/boot/kernel/iwlwifi-so-a0-jf-b0-68.ucode.ko
/boot/kernel/iwlwifi-ty-a0-gf-a0-68.ucode.ko
/usr/include/c++/v1/__function_like.h
/usr/include/c++/v1/__memory/pointer_safety.h
/usr/include/c++/v1/__utility/__decay_copy.h
/usr/lib/clang/13.0.0
/usr/lib/clang/13.0.0/include
/usr/lib/clang/13.0.0/include/__clang_cuda_builtin_vars.h
/usr/lib/clang/13.0.0/include/__clang_cuda_cmath.h
/usr/lib/clang/13.0.0/include/__clang_cuda_complex_builtins.h
/usr/lib/clang/13.0.0/include/__clang_cuda_device_functions.h
/usr/lib/clang/13.0.0/include/__clang_cuda_intrinsics.h
/usr/lib/clang/13.0.0/include/__clang_cuda_libdevice_declares.h
/usr/lib/clang/13.0.0/include/__clang_cuda_math.h
/usr/lib/clang/13.0.0/include/__clang_cuda_math_forward_declares.h
/usr/lib/clang/13.0.0/include/__clang_cuda_runtime_wrapper.h
/usr/lib/clang/13.0.0/include/__clang_hip_cmath.h
/usr/lib/clang/13.0.0/include/__clang_hip_libdevice_declares.h
/usr/lib/clang/13.0.0/include/__clang_hip_math.h
/usr/lib/clang/13.0.0/include/__clang_hip_runtime_wrapper.h
/usr/lib/clang/13.0.0/include/__stddef_max_align_t.h
/usr/lib/clang/13.0.0/include/__wmmintrin_aes.h
: # 这里输入 q,确认变动,直至没有新内容出现
To install the downloaded upgrades, run "/usr/sbin/freebsd-update install".
运行 freebsd-update install 以安装更新:
root@ykla:/home/ykla # freebsd-update install
src component not installed, skipped
Creating snapshot of existing boot environment... done.
Installing updates...
Kernel updates have been installed. Please reboot and run
"/usr/sbin/freebsd-update install" again to finish installing updates.
内核更新已经安装,系统要求重启后再运行 freebsd-update install。
root@ykla:/home/ykla # reboot
root@ykla:/home/ykla # freebsd-update install
src component not installed, skipped
Creating snapshot of existing boot environment... done.
Installing updates...Scanning //usr/share/certs/blacklisted for certificates... #需要等待约 15 分钟
Scanning //usr/share/certs/trusted for certificates...
Scanning //usr/local/share/certs for certificates...
done.
检查第三方软件 ABI 变化:
root@ykla:/home/ykla # pkg upgrade
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking for upgrades (28 candidates): 100%
Processing candidates (28 candidates): 100%
The following 30 package(s) will be affected (of 0 checked):
New packages to be INSTALLED:
gstreamer1-plugins-curl: 1.20.6
gstreamer1-plugins-openh264: 1.20.6
openh264: 2.3.0,2
Installed packages to be UPGRADED:
curl: 7.87.0 -> 7.88.1
dav1d: 1.0.0_3 -> 1.1.0
gnutls: 3.7.8_1 -> 3.7.9
gstreamer1: 1.20.5 -> 1.20.6
gstreamer1-plugins: 1.20.5 -> 1.20.6
gstreamer1-plugins-a52dec: 1.20.5 -> 1.20.6
gstreamer1-plugins-bad: 1.20.5 -> 1.20.6
gstreamer1-plugins-dts: 1.20.5 -> 1.20.6
gstreamer1-plugins-dvdread: 1.20.5 -> 1.20.6
gstreamer1-plugins-good: 1.20.5 -> 1.20.6
gstreamer1-plugins-mpg123: 1.20.5 -> 1.20.6
gstreamer1-plugins-ogg: 1.20.5 -> 1.20.6
gstreamer1-plugins-pango: 1.20.5 -> 1.20.6
gstreamer1-plugins-png: 1.20.5 -> 1.20.6
gstreamer1-plugins-resindvd: 1.20.5 -> 1.20.6
gstreamer1-plugins-theora: 1.20.5 -> 1.20.6
gstreamer1-plugins-ugly: 1.20.5 -> 1.20.6
gstreamer1-plugins-vorbis: 1.20.5 -> 1.20.6
harfbuzz: 6.0.0 -> 7.0.1
libass: 0.17.0 -> 0.17.1
mesa-dri: 22.3.3_2 -> 22.3.6
mesa-libs: 22.3.3_1 -> 22.3.6
nss: 3.87 -> 3.88.1
openexr: 3.1.5 -> 3.1.6_1
plasma5-systemsettings: 5.24.7 -> 5.24.7_1
sddm: 0.19.0_7 -> 0.19.0_8
xwayland-devel: 21.0.99.1.386 -> 21.0.99.1.439
Number of packages to be installed: 3
Number of packages to be upgraded: 27
The process will require 5 MiB more space.
32 MiB to be downloaded.
Proceed with this action? [y/N]: #这里输入 y 回车。
…………以下省略………………