# Transition from CentOS to Rocky

**URL:** <https://forums.rockylinux.org/t/transition-from-centos-to-rocky/389>\
**Category:** Rocky Linux Help & Support\
**Created:** [December 10, 2020, 10:27pm UTC](https://forums.rockylinux.org/t/transition-from-centos-to-rocky/389 "2020-12-10T22:27:54Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![rossnick](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/rossnick/32/5504_2.png) [@rossnick](https://forums.rockylinux.org/u/rossnick)\
**Post date:** [May 1, 2021, 6:05pm UTC](https://forums.rockylinux.org/t/transition-from-centos-to-rocky/389/21 "2021-05-01T18:05:50Z")

</div>

I did it with thoses instructions from @esw and it worked flawlessly. Switch a test vm from C8 to RL8RC1 and it worked like a charm

---

<div class="post-metadata">

**Author:** ![rossnick](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/rossnick/32/5504_2.png) [@rossnick](https://forums.rockylinux.org/u/rossnick)\
**Post date:** [May 1, 2021, 6:06pm UTC](https://forums.rockylinux.org/t/transition-from-centos-to-rocky/389/22 "2021-05-01T18:06:22Z")

</div>

```
rpm -e --nodeps centos-gpg-keys centos-linux-release centos-linux-repos
rpm -ivh \
  https://download.rockylinux.org/pub/rocky/8.3/BaseOS/x86_64/os/Packages/rocky-release-8.3-11.el8.noarch.rpm \
  https://download.rockylinux.org/pub/rocky/8.3/BaseOS/x86_64/os/Packages/rocky-repos-8.3-11.el8.noarch.rpm \
  https://download.rockylinux.org/pub/rocky/8.3/BaseOS/x86_64/os/Packages/rocky-gpg-keys-8.3-11.el8.noarch.rpm
dnf distro-sync -y
```

---

<div class="post-metadata">

**Author:** ![tjdoyle](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/tjdoyle/32/500_2.png) [@tjdoyle](https://forums.rockylinux.org/u/tjdoyle)\
**Post date:** [May 1, 2021, 9:42pm UTC](https://forums.rockylinux.org/t/transition-from-centos-to-rocky/389/23 "2021-05-01T21:42:05Z")

</div>

Hi,

I had one additional command for the transition to work, possibly because I’ve cpanel (dns-only) installed. Mainly use Centos for cpanel, so wanted to test if it works on a VM. Can’t install straight on to rocky, but converting cpanel seems to be working fine. I suspect my additional command probably isn’t recommended, but I seem to have astable system. Addtion is: `rpm -e --nodeps --justdb glibc-static-2.28-127.el8.x86_64` and full list of commands is:

```
rpm -e --nodeps centos-gpg-keys centos-linux-release centos-linux-repos
rpm -ivh \
  https://download.rockylinux.org/pub/rocky/8.3/BaseOS/x86_64/os/Packages/rocky-release-8.3-11.el8.noarch.rpm \
  https://download.rockylinux.org/pub/rocky/8.3/BaseOS/x86_64/os/Packages/rocky-repos-8.3-11.el8.noarch.rpm \
  https://download.rockylinux.org/pub/rocky/8.3/BaseOS/x86_64/os/Packages/rocky-gpg-keys-8.3-11.el8.noarch.rpm
rpm -e --nodeps --justdb glibc-static-2.28-127.el8.x86_64
dnf distro-sync -y

```

Reboot and all is good.

Thanks Tom.

---

<div class="post-metadata">

**Author:** ![pata](https://avatars.discourse-cdn.com/v4/letter/p/da6949/32.png) [@pata](https://forums.rockylinux.org/u/pata)\
**Post date:** [May 6, 2021, 4:13pm UTC](https://forums.rockylinux.org/t/transition-from-centos-to-rocky/389/24 "2021-05-06T16:13:57Z")

</div>

Good morning! Thanks for the great suggestions. I created a fully patched CentOS 8 VM on our vSphere 6.7U3 test cluster. I ran rossnick’s script and everything looked great. However, on boot, I’m thrown into grub and the VM won’t boot. If I force the VM into the EFI Boot Manager, I see an entry for Rocky Linux which points to (HD1,GPT,4AB…000)/\EFI\tocky\shimx64.efi. However, when I select that option, I just get the grub prompt. Any ideas? BTW, the root partition is LVM. Thanks for any advice!

---

<div class="post-metadata">

**Author:** ![tjdoyle](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/tjdoyle/32/500_2.png) [@tjdoyle](https://forums.rockylinux.org/u/tjdoyle)\
**Post date:** [May 6, 2021, 8:37pm UTC](https://forums.rockylinux.org/t/transition-from-centos-to-rocky/389/25 "2021-05-06T20:37:35Z")

</div>

Hi,

if you are just getting the grub-prompt, reinstalling grub from rescue mode from install iso/dvd; should fix:

> **[How to Recover GRUB 2 Bootloader in CentOS 8](https://www.centlinux.com/2019/12/how-to-recover-grub-2-bootloader-centos-8.html#point2)**
>
> GRUB (GRand Unified Bootloader) 2 is part of GNU Project and the default bootloader for famous Linux distros like RHEL, CentOS, Ubuntu, ...

Thanks Tom.

---

<div class="post-metadata">

**Author:** ![rojee](https://avatars.discourse-cdn.com/v4/letter/r/8e8cbc/32.png) [@rojee](https://forums.rockylinux.org/u/rojee)\
**Post date:** [May 7, 2021, 12:24pm UTC](https://forums.rockylinux.org/t/transition-from-centos-to-rocky/389/26 "2021-05-07T12:24:05Z")

</div>

I have Centos7. I am trying to use Rocky Linux as a repository.  
I have changed the url to point to the new location. A 1 line command . (below)  
" sed -i ‘s+/mirror.centos.org/centos/7/updates/[$]basearch/+/springdale.princeton.edu/data/springdale/7/x86\_64/os/Updates/+’ /etc/yum.repos.d/CentOS-Base.repo "

Although i can access the new link in a web browser. “yum update” will not work.  
I get 5 points of advice in the error message & 10 trys by i think the “curl” command.

------------------------------------error message-start---------------------------------------------------------

[http://springdale.princeton.edu/data/springdale/7/x86\_64/os/Updates/repodata/repomd.xml:](http://springdale.princeton.edu/data/springdale/7/x86_64/os/Updates/repodata/repomd.xml:) [Errno 14] curl#7 - “Failed to connect to 128.112.128.21: Network is unreachable”

.  
.  
.  
…Ten times repeated …

------------------------------------error message-end---------------------------------------------------------

Is there a fix to run the “yum update” command?

All help apreciated 🙂

---

<div class="post-metadata">

**Author:** ![rojee](https://avatars.discourse-cdn.com/v4/letter/r/8e8cbc/32.png) [@rojee](https://forums.rockylinux.org/u/rojee)\
**Post date:** [May 7, 2021, 12:33pm UTC](https://forums.rockylinux.org/t/transition-from-centos-to-rocky/389/27 "2021-05-07T12:33:29Z")

</div>

I just read in this thread that CTOS7 is still supported …hmmmmm my Centos7 is not updating … I just replied to a post & i got the exact same error with the old centos url & as i did to the new url …thus  
" [http://springdale.princeton.edu/data/springdale/7/x86\_64/os/Updates/repodata/repomd.xml](http://springdale.princeton.edu/data/springdale/7/x86_64/os/Updates/repodata/repomd.xml)"

… so now i haven’t a clue …error message …  
"[Errno 14] curl#7 - “Failed to connect to 128.112.128.21: Network is unreachable”  
-bash: [http://springdale.princeton.edu/data/springdale/7/x86\_64/os/Updates/repodata/repomd.xml::](http://springdale.princeton.edu/data/springdale/7/x86_64/os/Updates/repodata/repomd.xml::) No such file or directory  
"

any help much needed

thx Roger

UPDATE …There was a routing problem …a Reboot fixed it.

although with the new (rocky) url i get this …

Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

The GPG keys listed for the “CentOS-7 - Updates” repository are already installed but they are not correct for this package.  
Check that the correct key URLs are configured for this repository.

Failing package is: 32:bind-export-libs-9.11.4-26.P2.el7\_9.5.x86\_64  
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

---

<div class="post-metadata">

**Author:** ![rojee](https://avatars.discourse-cdn.com/v4/letter/r/8e8cbc/32.png) [@rojee](https://forums.rockylinux.org/u/rojee)\
**Post date:** [May 7, 2021, 12:41pm UTC](https://forums.rockylinux.org/t/transition-from-centos-to-rocky/389/28 "2021-05-07T12:41:58Z")

</div>

FWIW …original error …

"[http://mirror.centos.org/centos/7/updates/x86\_64/repodata/repomd.xml:](http://mirror.centos.org/centos/7/updates/x86_64/repodata/repomd.xml:) [Errno 14] curl#7 - “Failed to connect to 2402:1b80:0:2:0:6:3956:6: Network is unreachable”  
"

---

<div class="post-metadata">

**Author:** ![pata](https://avatars.discourse-cdn.com/v4/letter/p/da6949/32.png) [@pata](https://forums.rockylinux.org/u/pata)\
**Post date:** [May 7, 2021, 3:38pm UTC](https://forums.rockylinux.org/t/transition-from-centos-to-rocky/389/29 "2021-05-07T15:38:40Z")

</div>

THANKS, Tom!!! Rebuilding the grub.cfg file worked like a charm.

---

<div class="post-metadata">

**Author:** ![joostfra](https://avatars.discourse-cdn.com/v4/letter/j/5e9695/32.png) [@joostfra](https://forums.rockylinux.org/u/joostfra)\
**Post date:** [June 21, 2021, 5:43pm UTC](https://forums.rockylinux.org/t/transition-from-centos-to-rocky/389/30 "2021-06-21T17:43:43Z")

</div>

With the 8.4 GA release this worked for me.  
From Centos 8.4 to Rocky 8.4 GA.

dnf -y update  
reboot  
rpm -e --nodeps centos-gpg-keys centos-linux-release centos-linux-repos  
rpm -ivh   
[https://download.rockylinux.org/pub/rocky/8.4/BaseOS/x86\_64/os/Packages/rocky-release-8.4-26.el8.noarch.rpm](https://download.rockylinux.org/pub/rocky/8.4/BaseOS/x86_64/os/Packages/rocky-release-8.4-26.el8.noarch.rpm)   
[https://download.rockylinux.org/pub/rocky/8.4/BaseOS/x86\_64/os/Packages/rocky-repos-8.4-26.el8.noarch.rpm](https://download.rockylinux.org/pub/rocky/8.4/BaseOS/x86_64/os/Packages/rocky-repos-8.4-26.el8.noarch.rpm)   
[https://download.rockylinux.org/pub/rocky/8.4/BaseOS/x86\_64/os/Packages/rocky-gpg-keys-8.4-26.el8.noarch.rpm](https://download.rockylinux.org/pub/rocky/8.4/BaseOS/x86_64/os/Packages/rocky-gpg-keys-8.4-26.el8.noarch.rpm)  
dnf distro-sync -y  
reboot

Tested with a VM working as a webserver.  
After migration webserver working correctly.

---

<div class="post-metadata">

**Author:** ![jorp](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/jorp/32/402_2.png) [@jorp](https://forums.rockylinux.org/u/jorp)\
**Post date:** [June 21, 2021, 7:08pm UTC](https://forums.rockylinux.org/t/transition-from-centos-to-rocky/389/31 "2021-06-21T19:08:22Z")

</div>

Check out the [release notes](https://docs.rockylinux.org/release_notes/8.4/#conversion-tool-available) for our release which note our conversion script. Happy hacking everyone!

---

<div class="post-metadata">

**Author:** ![joostfra](https://avatars.discourse-cdn.com/v4/letter/j/5e9695/32.png) [@joostfra](https://forums.rockylinux.org/u/joostfra)\
**Post date:** [June 22, 2021, 6:34am UTC](https://forums.rockylinux.org/t/transition-from-centos-to-rocky/389/32 "2021-06-22T06:34:02Z")

</div>

Tested the migrate2rocky.sh script from the [release notes](https://docs.rockylinux.org/release_notes/8.4/#conversion-tool-available).  
Until now all VM’s migrated succesfully to the GA release.

Thank you

---

<div class="post-metadata">

**Author:** ![knight-of-ni](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/knight-of-ni/32/884_2.png) [@knight-of-ni](https://forums.rockylinux.org/u/knight-of-ni)\
**Post date:** [June 22, 2021, 11:56am UTC](https://forums.rockylinux.org/t/transition-from-centos-to-rocky/389/33 "2021-06-22T11:56:04Z")

</div>

With RL8.3 on EFI machines, one needed to call grub2-mkconfig as the last step of the migration, before rebooting. See: [[SOLVED] Grub prompt after CentOS 8 -\> RL8 migration - #2 by knight-of-ni](https://forums.rockylinux.org/t/solved-grub-prompt-after-centos-8-rl8-migration/2578/2)

Can anyone confirm whether this has been fixed in RL8.4?  
For now, I’ll keep issuing grub2-mkconfig --output=/boot/efi/EFI/rocky/grub.cfg just in case.

---

<div class="post-metadata">

**Author:** ![magnas](https://avatars.discourse-cdn.com/v4/letter/m/df788c/32.png) [@magnas](https://forums.rockylinux.org/u/magnas)\
**Post date:** [June 22, 2021, 3:31pm UTC](https://forums.rockylinux.org/t/transition-from-centos-to-rocky/389/34 "2021-06-22T15:31:44Z")

</div>

Hi everyone,

I was going through the discussion about how to transit from CentOS 8 to Rocky and i believe it’s an amazing job from the community. I know for now the project is mainly focused on the transition from CentOS 8 due to the time limiting but for my case i wanna transit from CentOS 7 directly to Rocky. I’m still not able to install my CentOS7-repos on Rocky through dnf/yum in that case.

The following errors arised as i was trying to install packages from my own CentOS7 repository mirrors:

> Error:  
> Problem 1: cannot install both linux-firmware-20160830-49.git7534e19.el7.noarch and linux-firmware-20201218-102.git05789708.el8.noarch
> 
> - cannot install the best update candidate for package libertas-usb8388-firmware-2:20201218-102.git05789708.el8.noarch
> - problem with installed package linux-firmware-20201218-102.git05789708.el8.noarch  
> Problem 2: package libidn2-2.3.1-1.el7.x86\_64 requires libunistring.so.0()(64bit), but none of the providers can be installed
> - cannot install both libunistring-0.9.3-9.el7.x86\_64 and libunistring-0.9.9-3.el8.x86\_64
> - cannot install the best update candidate for package libidn2-2.2.0-1.el8.x86\_64
> - problem with installed package libunistring-0.9.9-3.el8.x86\_64

Any ideas/solutions/suggestions will be much appreciated. Thank you in advance.

---

<div class="post-metadata">

**Author:** ![inayet](https://avatars.discourse-cdn.com/v4/letter/i/bc79bd/32.png) [@inayet](https://forums.rockylinux.org/u/inayet)\
**Post date:** [June 24, 2021, 3:49am UTC](https://forums.rockylinux.org/t/transition-from-centos-to-rocky/389/35 "2021-06-24T03:49:48Z")

</div>

hello @ magnas, your best bet is to upgrade your centos07 to 08 and then migrate to rocky linux

---

<div class="post-metadata">

**Author:** ![michael.j.george](https://avatars.discourse-cdn.com/v4/letter/m/9de0a6/32.png) [@michael.j.george](https://forums.rockylinux.org/u/michael.j.george)\
**Post date:** [June 25, 2021, 2:54pm UTC](https://forums.rockylinux.org/t/transition-from-centos-to-rocky/389/36 "2021-06-25T14:54:14Z")

</div>

I have a CentOS 8.4 system which is fully up-to-date. I have run the “migrate2rocky.sh” script as well as running joostfra’s process with the “grub2-mkconfig --output=/boot/efi/EFI/rocky/grub.cfg” command before the reboot. I end up getting stuck at the dracut prompt because the Volume Group cannot be found.

---

<div class="post-metadata">

**Author:** ![Iainwhite](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/iainwhite/32/494_2.png) [@Iainwhite](https://forums.rockylinux.org/u/Iainwhite)\
**Post date:** [June 30, 2021, 6:26pm UTC](https://forums.rockylinux.org/t/transition-from-centos-to-rocky/389/37 "2021-06-30T18:26:44Z")

</div>

I successfully migrated a Centos 8.4 Stream system to Centos 8.4 system, then to a Rocky 8.4 system.

From memory, the steps were as follows:

_ **Convert Centos stream to Centos** _

sudo dnf remove centos-release-stream

wget [http://mirror.centos.org/centos/8/BaseOS/x86\_64/os/Packages/centos-linux-release-8.4-1.2105.el8.noarch.rpm](http://mirror.centos.org/centos/8/BaseOS/x86_64/os/Packages/centos-linux-release-8.4-1.2105.el8.noarch.rpm)  
wget [http://mirror.centos.org/centos/8/BaseOS/x86\_64/os/Packages/centos-linux-repos-8-2.el8.noarch.rpm](http://mirror.centos.org/centos/8/BaseOS/x86_64/os/Packages/centos-linux-repos-8-2.el8.noarch.rpm)

sudo rpm -e --nodeps centos-stream-release centos-stream-repos

sudo rpm -ivh centos-linux-release-8.4-1.2105.el8.noarch.rpm centos-linux-repos-8-2.el8.noarch.rpm

sudo dnf distro-sync --allowerasing

sudo reboot

_ **Remove old repos** _

e.g. sudo rm yum.repos.d/CentOS-Linux-ContinuousRelease.repo etc etc

_ **Then run the migrate to Rocky** _

e.g. sudo ./migrate2rocky.sh -V

sudo reboot

---

<div class="post-metadata">

**Author:** ![knight-of-ni](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/knight-of-ni/32/884_2.png) [@knight-of-ni](https://forums.rockylinux.org/u/knight-of-ni)\
**Post date:** [July 1, 2021, 12:34am UTC](https://forums.rockylinux.org/t/transition-from-centos-to-rocky/389/38 "2021-07-01T00:34:01Z")

</div>

I too successfully transitioned a machine from Centos Stream 8.2 → CentOS 8.4 → Rocky 8.4.

The only thing I would add is that, upon installing centos-linux-repos, any additional centos repos you were using previously, such as powertools, go back to their default state, which is disabled.

This caused distro-sync to fail in my case because the packages I am using require powertools repo. Once I realized what happened and turned powertools back on, the upgrade went smoothly.

---

<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:** [July 1, 2021, 3:19am UTC](https://forums.rockylinux.org/t/transition-from-centos-to-rocky/389/39 "2021-07-01T03:19:31Z")

</div>

(Relayed from @label) This is expected behavior. Red Hat changed the names of the repos in 8.2. We can’t fix the “CentOS” Stream → CentOS portion of such a conversion, but perhaps some logic can be implemented to take the repo name change into account in [https://github.com/rocky-linux/rocky-tools/blob/main/migrate2rocky/migrate2rocky.sh](https://github.com/rocky-linux/rocky-tools/blob/main/migrate2rocky/migrate2rocky.sh) for direct CentOS → Rocky conversions.

---

<div class="post-metadata">

**Author:** ![knight-of-ni](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.rockylinux.org/knight-of-ni/32/884_2.png) [@knight-of-ni](https://forums.rockylinux.org/u/knight-of-ni)\
**Post date:** [July 1, 2021, 12:33pm UTC](https://forums.rockylinux.org/t/transition-from-centos-to-rocky/389/40 "2021-07-01T12:33:38Z")

</div>

Completely agree. My previous statement was not intended to imply something should be changed on the rocky linux side. Rather, it is simply a heads up to anyone doing a multi-step, unsupported upgrade such as the one Iainwhite and I took.

[Previous page](https://forums.rockylinux.org/t/transition-from-centos-to-rocky/389.md?page=1)

[Next page](https://forums.rockylinux.org/t/transition-from-centos-to-rocky/389.md?page=3)
