# How to migrate CentOS 7 to Rock Linux 8

**URL:** https://forums.rockylinux.org/t/how-to-migrate-centos-7-to-rock-linux-8/3470
**Category:** Rocky Linux Help & Support
**Created:** [July 10, 2021, 8:40am UTC](https://forums.rockylinux.org/t/how-to-migrate-centos-7-to-rock-linux-8/3470 "2021-07-10T08:40:15Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![aria](https://avatars.discourse-cdn.com/v4/letter/a/67e7ee/32.png) [@aria](https://forums.rockylinux.org/u/aria)
#### Post date: [July 10, 2021, 8:40am UTC](https://forums.rockylinux.org/t/how-to-migrate-centos-7-to-rock-linux-8/3470/1 "2021-07-10T08:40:15Z")

</div>

Hello. Some of my servers are on CentOS 7 operating system. The documentation for migrating to Rocky Linux is for CentOS version 8. How can I migrate from CentOS 7 to Rock Linux 8?

---

<div class="post-metadata">

### Author: ![TonyH](https://avatars.discourse-cdn.com/v4/letter/t/71c47a/32.png) [@TonyH](https://forums.rockylinux.org/u/TonyH)
#### Post date: [July 10, 2021, 9:39am UTC](https://forums.rockylinux.org/t/how-to-migrate-centos-7-to-rock-linux-8/3470/2 "2021-07-10T09:39:56Z")

</div>

I’m in the process of doing that upgrade myself, but a fresh install is the way to go I think, then copy over things from the old Centos 7.

---

<div class="post-metadata">

### Author: ![label](https://avatars.discourse-cdn.com/v4/letter/l/c5a1d2/32.png) [@label](https://forums.rockylinux.org/u/label)
#### Post date: [July 11, 2021, 12:04am UTC](https://forums.rockylinux.org/t/how-to-migrate-centos-7-to-rock-linux-8/3470/3 "2021-07-11T00:04:12Z")

</div>

The recommended way forward is a migration. One of these things could be done:

- Backups of data are taken and restored on a freshly installed Rocky 8 system
- A new Rocky 8 system is installed in parallel of your CentOS 7 machine and you perform a migration of configuration and data

---

<div class="post-metadata">

### Author: ![Jil](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/jil/32/1089_2.png) [@Jil](https://forums.rockylinux.org/u/Jil)
#### Post date: [April 20, 2022, 8:55pm UTC](https://forums.rockylinux.org/t/how-to-migrate-centos-7-to-rock-linux-8/3470/4 "2022-04-20T20:55:21Z")

</div>

Can leapp utility be utilised since it works with Redhat based Distros?

---

<div class="post-metadata">

### Author: ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)
#### Post date: [April 20, 2022, 9:35pm UTC](https://forums.rockylinux.org/t/how-to-migrate-centos-7-to-rock-linux-8/3470/5 "2022-04-20T21:35:36Z")

</div>

Red Hat wrote leapp for RHEL, didn’t they? Only for RHEL, not for RHEL-based distros. Furthermore, it does not work for everyone.

AlmaLinux has ELevate project: [AlmaLinux OS - ELevate Your Distribution](https://almalinux.org/elevate)  
It uses leapp with data (initially from Oracle) to work with RHEL-based distros. Like RHEL → RHEL leapp, ELevate does not work for all setups. So yes, “_can be utilised_”, but with huge caveats.

Personally, I prefer the ‘migration’: _fresh install, apply appropriate configuration, and bring in user data._

---

<div class="post-metadata">

### Author: ![Jil](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/jil/32/1089_2.png) [@Jil](https://forums.rockylinux.org/u/Jil)
#### Post date: [April 21, 2022, 5:40am UTC](https://forums.rockylinux.org/t/how-to-migrate-centos-7-to-rock-linux-8/3470/6 "2022-04-21T05:40:33Z")

</div>

Thank you. See a guide on this migration. Give me your feedback.

> **[How To Migrate from CentOS 7 to Rocky Linux 8 - TechViewLeo](https://techviewleo.com/how-to-migrate-from-centos-7-to-rocky-linux-8/)**
>
> In this guide, we shall describe how to migrate your services from CentOS 7 to Rocky Linux 8. Rocky Linux is a community enterprise operating system created

---

<div class="post-metadata">

### Author: ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)
#### Post date: [April 21, 2022, 6:38am UTC](https://forums.rockylinux.org/t/how-to-migrate-centos-7-to-rock-linux-8/3470/7 "2022-04-21T06:38:12Z")

</div>

That “guide” makes no sense today

- There has **never** been supported in-place conversion from one major version of CentOS Linux into another major version of CentOS Linux
- There is no more CentOS Linux 8
- The ELevate supposedly does all those steps for you

---

<div class="post-metadata">

### Author: ![Jil](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/jil/32/1089_2.png) [@Jil](https://forums.rockylinux.org/u/Jil)
#### Post date: [April 21, 2022, 9:29am UTC](https://forums.rockylinux.org/t/how-to-migrate-centos-7-to-rock-linux-8/3470/8 "2022-04-21T09:29:50Z")

</div>

This guide is on CentOS 7 to Rocky Linux 8. It has nothing to do with CentOS Linux 8.

But in short, and true agreeing with you on Elevate, there is also another way of doing it.

All said and done, Rocky Linux 8.5 is such a beauty. Good day.

---

<div class="post-metadata">

### Author: ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)
#### Post date: [April 21, 2022, 10:32am UTC](https://forums.rockylinux.org/t/how-to-migrate-centos-7-to-rock-linux-8/3470/9 "2022-04-21T10:32:03Z")

</div>

Nothing to do? Their summary:

> 1. Upgrade CentOS 7 to CentOS 8
> 2. Migrate from CentOS 8 to Rocky Linux

Looks very much “CentOS 8”-related

---

<div class="post-metadata">

### Author: ![Jil](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/jil/32/1089_2.png) [@Jil](https://forums.rockylinux.org/u/Jil)
#### Post date: [April 21, 2022, 11:38am UTC](https://forums.rockylinux.org/t/how-to-migrate-centos-7-to-rock-linux-8/3470/10 "2022-04-21T11:38:48Z")

</div>

Tell me more about ELevate. Would love to do an article on it and research more. Any guide sir?

---

<div class="post-metadata">

### Author: ![Jil](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/jil/32/1089_2.png) [@Jil](https://forums.rockylinux.org/u/Jil)
#### Post date: [April 21, 2022, 5:48pm UTC](https://forums.rockylinux.org/t/how-to-migrate-centos-7-to-rock-linux-8/3470/11 "2022-04-21T17:48:44Z")

</div>

Jlehtone, thank you so much. I have checked on ELevate. Thumbs up men.

---

<div class="post-metadata">

### Author: ![Jil](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/jil/32/1089_2.png) [@Jil](https://forums.rockylinux.org/u/Jil)
#### Post date: [July 17, 2022, 7:25pm UTC](https://forums.rockylinux.org/t/how-to-migrate-centos-7-to-rock-linux-8/3470/12 "2022-07-17T19:25:49Z")

</div>

@jlehtone good evening. Where can I get the official Elevate Documentation? Thank you

---

<div class="post-metadata">

### Author: ![jlehtone](https://avatars.discourse-cdn.com/v4/letter/j/e9a140/32.png) [@jlehtone](https://forums.rockylinux.org/u/jlehtone)
#### Post date: [July 17, 2022, 7:34pm UTC](https://forums.rockylinux.org/t/how-to-migrate-centos-7-to-rock-linux-8/3470/13 "2022-07-17T19:34:45Z")

</div>

I can’t tell for sure. People at the ‘Migration’ channel of [chat.almalinux.org](http://chat.almalinux.org) should know. [About ELevate project | AlmaLinux Wiki](https://wiki.almalinux.org/elevate/) is probably part of it, and the upstream documentation of the Leapp is part of it too.

Personally, I rather do clean installs than attempt in-place migrations.

---

<div class="post-metadata">

### Author: ![Jil](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/jil/32/1089_2.png) [@Jil](https://forums.rockylinux.org/u/Jil)
#### Post date: [July 18, 2022, 5:59pm UTC](https://forums.rockylinux.org/t/how-to-migrate-centos-7-to-rock-linux-8/3470/14 "2022-07-18T17:59:47Z")

</div>

Thank you @jlehtone . Am working on an article on AlmaLinux upgrade from 8 to 9. I will major on the Elevate approach and see how it goes . I am a content writer.

Thank you

---

<div class="post-metadata">

### Author: ![iwalker](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/iwalker/32/2599_2.png) [@iwalker](https://forums.rockylinux.org/u/iwalker)
#### Post date: [July 18, 2022, 8:11pm UTC](https://forums.rockylinux.org/t/how-to-migrate-centos-7-to-rock-linux-8/3470/15 "2022-07-18T20:11:30Z")

</div>

@Jil Take a look at this thread: [Rocky Linux 8 upgrade to Rocky Linux 9](https://forums.rockylinux.org/t/rocky-linux-8-upgrade-to-rocky-linux-9/6629)

This procedure more or less works, but requires adapting manually depending on what is installed on the machine. It’s not exactly automated as such, like what elevate would most likely do. I had to change a few commands for mine to work, removing some stuff that got in the way (ruby-irb). But other than that it wasn’t too bad. That said, anything can happen, so no guarantees.

Mileage will vary though, clean install being the official and preferred method.

---

<div class="post-metadata">

### Author: ![illuminatus](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/illuminatus/32/716_2.png) [@illuminatus](https://forums.rockylinux.org/u/illuminatus)
#### Post date: [April 5, 2023, 10:21pm UTC](https://forums.rockylinux.org/t/how-to-migrate-centos-7-to-rock-linux-8/3470/16 "2023-04-05T22:21:31Z")

</div>

I had to revisit this topic for work so decided to update the thread.

I can say that the recompiled the `leapp` tools from the Alma Linux ELevate repository now fully supports migration of CentOS 7 to Rocky Linux 8. My experience was pretty smooth when using `elevate-release-1.0-2.el7.noarch.rpm` along with `leapp-data-rocky-0.1-6.el7.noarch.rpm`.

It has the same limits as the upstream `leapp` tool does from Red Hat. Meaning if you have third party repositories and RPMs installed running `leapp preupgrade` and `leapp upgrade` may require:

- Enabling the third party repositories
- Appending third party repositories to `/etc/leapp/files/leapp_upgrade_repositories.repo`
- Completely removing third party RPMs and repositories

Using `rpm -e --nodeps` to “work around” RPM conflict issues, leaving non conflicting RPMs installed is likely to break the upgrade and result in a machine which does not boot even if the transaction checks report no issues.

I’m not suggesting anyone race out and make this their upgrade process. It is possible to do with a “plain vanilla” CentOS 7. However if you have a “plain vanilla” CentOS 7 I also see no reason taking a backup and restoring after a clean installation would not be the default choice for upgrade.

---

<div class="post-metadata">

### Author: ![brian](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/brian/32/5777_2.png) [@brian](https://forums.rockylinux.org/u/brian)
#### Post date: [August 25, 2023, 3:19am UTC](https://forums.rockylinux.org/t/how-to-migrate-centos-7-to-rock-linux-8/3470/17 "2023-08-25T03:19:07Z")

</div>


