19.3 使用 PkgBase 更新基本系统
# pkg -c /mnt/upgrade lock pkg # 在 /mnt/upgrade 环境中锁定 pkg 软件包
pkg-2.4.2_1: lock this package? [y/N]: y # 输入 y 按回车键确认锁定 pkg
Locking pkg-2.4.2_1# fetch -o /mnt/upgrade https://raw.githubusercontent.com/FreeBSDFoundation/pkgbasify/main/pkgbasify.lua # 下载 PkgBase 转换脚本# chroot /mnt/upgrade /usr/libexec/flua pkgbasify.lua # 使用 pkgbasify 转换
Running this tool will irreversibly modify your system to use pkgbase.
This tool and pkgbase are experimental and may result in a broken system.
It is highly recommended to backup your system before proceeding.
Do you accept this risk and wish to continue? (y/n) y # 风险提示,确认后继续
Updating FreeBSD repository catalogue...
……此处省略……
The following 370 package(s) will be affected (of 0 checked):
New packages to be INSTALLED:
FreeBSD-acct: 14.3p6 [FreeBSD-base]
FreeBSD-acct-man: 14.3p6 [FreeBSD-base]
FreeBSD-acpi: 14.3p6 [FreeBSD-base]
FreeBSD-acpi-man: 14.3p6 [FreeBSD-base]
……此处省略……
Conversion finished.
Please verify that the contents of the following critical files are as expected:
/etc/master.passwd
/etc/group
/etc/ssh/sshd_config
After verifying those files, restart the system.使用 PkgBase 将启动环境中的系统版本更新到 15.0-RELEASE
附录:给 pkgbasify 脚本切换软件源(使用 USTC)
最后更新于