Updating FreeBSD to Version 14.1-RELEASE

In this article, we will go through the process of updating the FreeBSD operating system to version 14.1-RELEASE. You will need administrator privileges to perform the update, so we will use the doas utility.

First, execute the command to start the system update:

doas freebsd-update -r 14.1-RELEASE upgrade

This command initiates the process of downloading and applying the necessary updates to transition to version 14.1-RELEASE. After the download and preparation of the files are complete, run the update installation:

doas /usr/sbin/freebsd-update install

After installing the first part of the updates, you need to reboot the system for the changes to take effect:

doas shutdown -r now

After rebooting, run the update installation again to complete the update process:

doas /usr/sbin/freebsd-update install

The next step is to reinstall all packages. First, execute the command to reinstall the package manager:

doas pkg-static bootstrap -f

Next, upgrade all installed packages to their latest versions:

doas pkg-static upgrade -f

Finally, complete the installation of the remaining system updates:

doas /usr/sbin/freebsd-update install

By following these steps, we have updated the FreeBSD system to version 14.1-RELEASE, installed all necessary updates, and upgraded the packages. Regularly performing such updates helps keep the system up to date, ensuring security and stability.