ArticlesRocky Linux

Migrate From Rocky Linux LTS to the Latest Rocky Linux Community Version

communityLTSmigrationRocky Linux

Stephen Simpson
Senior Customer Support Engineer

Jul 25, 2024

Introduction

If you are on an LTS version of Rocky Linux and would like to transition to the latest community version of Rocky Linux, you need to revert the repositories and release back to defaults.

Resolution

For example, if you were on the Rocky Linux 9.2 LTS and wanted to upgrade to the community Rocky Linux 9.6, you can accomplish this by running these commands:

sudo depot disable lts-9.2
sudo dnf swap ciq-lts92-rocky-release rocky-release --allowerasing --skip-broken
sudo dnf upgrade

Notes

  • The dnf swap command will replace all of your Rocky Linux repositories in /etc/yum/repos.d/ with the default repositories. If you use any custom repository URLs, make sure to back them up before running this command.
  • The dnf upgrade command will upgrade your node to Rocky Linux version 9.6. 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 before upgrading.

References & related articles

CIQ Long Term Support