ArticlesRocky Linux

Migrate From Rocky Linux LTS to Rocky Linux

Introduction

If you are on an LTS version of Rocky Linux and would like to transition to the latest upstream version of Rocky Linux you need to revert the repositories and the release back to the default repositories

Resolution

We can accomplish migrating from CIQ LTS for Rocky Linux 9.2 to Rocky Linux 9.4 running these commands:

sudo mtn dnf disable lts-9.2
sudo dnf swap ciq-lts92-rocky-release rocky-release --allowerasing --skip-broken
sudo dnf distrosync 

Notes

  • The dnf swap command will replace all of your Rocky repo's in /etc/yum/repos.d/ with the default repos. If you use any custom repo URLs, back them up before running this command.
  • The dnf distrosync command will upgrade your server to 9.4. Please ensure you have the necessary backups before proceeding.
  • If you use secure boot, test this on a non production server first to ensure there are no issues.
  • If dnf distrosync finishes but fails to install a package or two, you can run dnf upgrade to finish upgrading any missed packages.

References & related articles

CIQ Long Term Support