ArticlesRocky Linux

Migrate From Rocky Linux LTS to the Latest Rocky Linux Release

LTSmigrationRocky 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 standard Rocky Linux release, 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 Rocky Linux 9.6 (the current standard release), 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.

CIQ Long Term Support