
FreeBSD is an open-source Unix-like operating system known for its reliability and performance. FreeBSD 14 introduces modern features, the latest applications, and enhanced security. With each release, you can upgrade FreeBSD 14 to benefit from improvements, including an upgraded pkg package manager for easy application installation and management.
This article explains how to upgrade FreeBSD 14.0 from FreeBSD 13.0 to benefit from the latest improvements, performance, and security upgrades.
Before you begin:
Before upgrading your server to FreeBSD 14, test the compatibility of all installed applications to avoid any post-upgrade errors. Follow the recommendations below to test the compatibility of installed applications with FreeBSD 14 and verify that your server is ready for the upgrade.
Visit the FreeBSD release notes and verify any known vulnerabilities or unsupported packages.
Visit each application's documentation and verify it supports FreeBSD 14.0 to avoid post-upgrade runtime errors.
Stop any non-essential services to prevent upgrade interruptions.
Run the following df -h command and verify that your server has at least 2GB of free space to store the upgrade files.
Output:
Follow the steps below to upgrade the FreeBSD 13 server to FreeBSD 14.
Check the FreeBSD version on your server and verify that its FreeBSD 13.
Output:
Update the server's package information index.
Output:
Install a sample application to test the upgrade process. For example, install the Nginx webserver package.
Output:
Enable Nginx to automatically start at boot.
Output:
Start the Nginx service.
Output:
Fetch the latest FreeBSD 14.0 upgrade information.
Output:
You will receive multiple prompts similar to the ones below. Press Enter to edit each target file using the default vi editor.
Enter :wq to save and close the file. Then, enter ACCEPT when prompted to apply the changes.
Install the FreeBSD 14.0 updates information.
Output:
Reboot the server to apply the FreeBSD 14.0 changes.
Access the server again using SSH as a non-root user with sudo privileges.
Install the FreeBSD 14.0 update files again to upgrade the server.
Output:
Check the FreeBSD version on your server and verify that it's FreeBSD 14.0.
Output:
Re-install the pkg package manager with FreeBSD 14.0 information.
Rebuild all ports and packages with the latest FreeBSD 14.0 information.
Managing applications efficiently on FreeBSD is made easy with the FreeBSD package manager.
Follow the steps below to test your upgraded FreeBSD 14.0 server and verify that the sample Nginx webserver application you installed earlier runs correctly.
View all storage partitions on the server and verify that no unusual disk usage or paths exist.
Output:
View all running services on the server.
Output:
Test network connectivity and DNS propagation to a common site such as google.com using the Ping utility.
Output:
View the system logs to check any system errors or warnings associated with the upgrade.
Output:
Restart the Nginx service and view its status to verify it's running.
Access your server's public IP address using a web browser such as Chrome and verify that the default Nginx page displays.
Access other applications installed on your FreeBSD server and verify that they run correctly without any errors.
You have successfully upgraded your server from FreeBSD 13 to FreeBSD 14 and tested access to the installed applications. FreeBSD 14.0 offers newer packages and security enhancements, improving server reliability and performance. For more details on how to upgrade FreeBSD, visit the FreeBSD Documentation.
0 Comments
Be the first to comment and share your perspective with the community.