Upgrading your system from Rocky Linux 8 to Rocky Linux 9 ensures you have the latest features, security updates, and improvements. Follow this step-by-step guide to perform a smooth upgrade.
Prerequisites
- Backup your important data.
- Ensure you have root or sudo privileges.
- Stable internet connection.
Step 1: Update Current System
First, make sure your current Rocky Linux 8 system is up to date.
sudo dnf update -y sudo dnf upgrade -y sudo reboot
Step 2: Install EPEL Repository
Install the Extra Packages for Enterprise Linux (EPEL) repository.
sudo dnf install epel-release -y
Step 3: Install the Leapp Utility
The Leapp utility assists in the upgrade process.
sudo dnf install leapp-upgrade -y sudo dnf install leapp-data-rocky8to9 -y
Step 4: Check for Upgrade Readiness
Verify that your system is ready for the upgrade.
sudo leapp preupgrade
If there are any issues, resolve them before proceeding.
Step 5: Initiate the Upgrade
Start the upgrade process.
sudo leapp upgrade
Step 6: Reboot and Complete the Upgrade
After the upgrade process completes, reboot your system to finalize the upgrade.
sudo reboot
Step 7: Verify the Upgrade
Once the system restarts, verify that the upgrade was successful.
cat /etc/rocky-release
The output should indicate Rocky Linux 9.
Post-Upgrade Steps
-
- Update all packages to ensure everything is up to date.
sudo dnf update -y
sudo reboot
- Check for any deprecated or removed services and update configurations as necessary.
Troubleshooting
If you encounter issues during the upgrade, refer to the official Rocky Linux documentation or seek support from the Rocky Linux community.
Conclusion
Upgrading to Rocky Linux 9 keeps your system secure and up to date with the latest advancements. Always ensure you have backups and follow the upgrade steps carefully to minimize downtime and issues.






