Rocky Linux is an excellent alternative to CentOS, offering better community support and long-term stability. This guide will walk you through upgrading from Rocky Linux 8 to Rocky Linux 9, ensuring a smooth transition.
Before making any significant changes, back up all important data to ensure you can restore your system if needed.
Ensure your current Rocky Linux 8 system is fully updated:
sudo dnf update -y
sudo dnf upgrade -y
sudo reboot
List all installed packages and their versions:
rpm -qa --qf '%{NAME}-%{VERSION}-%{RELEASE}.%{ARCH}\n' > installed_packages.txt
If possible, set up a test environment with Rocky Linux 9 to test your critical applications and services.
sudo dnf install -y https://repo.rockylinux.org/vault/rocky/tools/x86_64/rocky-tools-release-latest-8.noarch.rpm
sudo dnf install -y leapp leapp-repository
sudo leapp preupgrade
sudo leapp upgrade
sudo reboot
cat /etc/os-release
sudo dnf update -y
If you encounter any issues, restore your backup and troubleshoot accordingly.
Address vulnerabilities that could be exploited by attackers.
Improve system stability and performance.
Benefit from the latest advancements and improvements.
Manage patches across all your servers from a single platform.
Reduce human error and save time with automated patch deployment.
Generate detailed reports to ensure regulatory compliance.