Migrate Centos8 Strean into Alma Linux8

From Bitbull Wiki
Jump to navigation Jump to search

1 Intro

In many forums I found the information, that the EOL of CentOS8 Stream needs a reinstall and can't get ugpraded or migrated into newer releases.
Since the repos have been removed, you need to switch to the vault repos to install any software in an old CentOS 8 Stream OS.

1.1 Switch to Vault Repos

find /etc/yum.repos.d -type f -exec sed -i 's/mirrorlist=http:\/\/mirrorlist.centos.org/\#mirrorlist=http:\/\/mirrorlist.centos.org/g' {} \;
find /etc/yum.repos.d -type f -exec sed -i 's/\#baseurl=http:\/\/mirror.centos.org/baseurl=http:\/\/vault.centos.org/g' {} \;
dnf update -y
dnf swap centos-linux-repos centos-stream-repos -y
dnf update -y

1.2 Upgrade to Rocky Linux 8

I migrated several Stream8 OS into Alma and never run into problems.

dnf install git -y
cd /tmp
git clone https://github.com/rocky-linux/rocky-tools.git
chmod +x /tmp/rocky-tools/migrate2rocky/migrate2rocky.sh
bash /tmp/rocky-tools/migrate2rocky/migrate2rocky.sh -r

1.3 Links