Upgrading a FreeBSD system from one release to another involves upgrading the base system files, the kernel, and the installed software packages. Here’s how to upgrade from FreeBSD 7.0 to 7.1:
- Update the ports tree and installed packages:
# portsnap fetch update
# pkg update
- Install the freebsd-update tool if it’s not already installed:
# pkg install freebsd-update
- Run the freebsd-update tool to download and install the new release:
# freebsd-update upgrade -r 7.1-RELEASE
This will download the necessary files and prompt you to confirm the upgrade. It’s a good idea to back up any important data before proceeding.
- Reboot the system into the new release:
# freebsd-update install
# shutdown -r now
- After the system reboots, run freebsd-update again to update any remaining files:
# freebsd-update install
- Rebuild all installed packages to ensure they work with the new release:
# pkg-static install -f `pkg-static query -g "*/pkg-1.14.*" | awk '{print $1}'`
- Reboot the system one final time to ensure everything is working properly:
# shutdown -r now
That’s it! Your system should now be upgraded to FreeBSD 7.1.v