13.3 Updating the Base System with PkgBase
# pkg -c /mnt/upgrade lock pkg # Lock the pkg package in the /mnt/upgrade environment
pkg-2.4.2_1: lock this package? [y/N]: y # Enter y and press Enter to confirm locking pkg
Locking pkg-2.4.2_1# fetch -o /mnt/upgrade https://raw.githubusercontent.com/FreeBSDFoundation/pkgbasify/main/pkgbasify.lua # Download the PkgBase conversion script# chroot /mnt/upgrade /usr/libexec/flua pkgbasify.lua # Convert using 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 # Risk prompt; confirm to continue
Updating FreeBSD repository catalogue...
……Omitted here……
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]
……Omitted here……
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.Using PkgBase to Update the System Version in the Boot Environment to 15.0-RELEASE
Appendix: Switching Software Sources for the pkgbasify Script (Using USTC)
Previous13.2 Updating FreeBSD from SourceNext13.4 Multi-Version Coexistence with ZFS Boot Environments
Last updated