Migrate CentOS 7 to Rocky linux9

We need to migrate centos7 to rockylinux 9
Is there a direct script to Migrate CentOS 7 to Rocky linux9 or should we migrate the centos 7 to centos 8 and then to rockylinux9

Or should we be migrate centos 7 to rocky linux 8 and to rocky linux 9

1 Like

There is no “centos 8” any more. There was never a supported method to convert in-place a CentOS 7 systeminto CentOS 8 (nor to Rocky 8).

The recommended (and only supported) method is to make a fresh installation of Rocky Linux, deploy appropriate configuration, and then transfer (user) data.

But I see this link

Can you help me on this

The following diagram, from About ELevate project | AlmaLinux Wiki, suggests that if you’re planning to use ELevate, you must first go from Cent 7 to Rocky 8, and then from Rocky 8 to Rocky 9.

ELevate migration paths diagram

I personally have only ever used Leapp (ELevate’s upstream) to go from RHEL7 to RHEL8, for the specific case of updating Katello when the project stopped supporting EL7, and it took a fair bit of manually removing unsupported stuff and adding back what we wanted to keep afterwards. I’m not sure how well upgrading major EL versions works in the general case. You may find that enough has changed between EL7 and 9 that you end up having to do just as much work to make your application go as you would have setting up a new EL9 installation and migrating to it.

Absolutely make sure you have bare-metal backups or VM snapshots if you decide to attempt this.

1 Like

Hi, do you know any open source or free software that allow me to perform a bare metal-backup of Centos 8?
Thank you in advance for your help

The low level “I want a copy of all bits, no matter what they are” is dd.

A bit more “user-friendly UI” for it is Clonezilla: https://clonezilla.org/
You would boot into Clonezilla live and choose to copy entire disk (clone) into another media.

A backup can also be on file level; one copies important files, rather than image of disk.

Yeah, I’m an important-files person rather than a bare-metal backup person myself, but I recommended the latter to OP because wanting to Leapp ostensibly means they very much wouldn’t want potentially having to restore from backup to include reinstalling the operating system, or they’d just do a reinstall in order to upgrade in the first place. It may even mean they’re unsure which files the important ones are.


You have a system. “State A”. You make a verbatim copy of state A.
Then you attempt “upgrade” on your system. (“In-place conversion to different distro” is IMHO more descriptive.)
If that goes South, fails, blows up, etc, then you can restore the state A from the “good copy”, and try again/something else.
If the operation succeeds, then you can discard the copy.

A solid, tested backup solution (for the “important files”) is something that one should want and have regardless of OS.


This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.