How to upgrade CentOS 8 to CentOS 8.5 and migrate to AlmaLinux

sudo sed -i -e ‘/mirrorlist=http:\/\/mirrorlist.centos.org\/?release=$releasever&arch=$basearch&repo=/ s/^#*/#/’ -e ‘/baseurl=http:\/\/mirror.centos.org\/$contentdir\/$releasever\// s/^#*/#/’ -e ‘/^\[baseos\]/a baseurl=https://mirror.rackspace.com/centos-vault/8.5.2111/BaseOS/$basearch/os’ /etc/yum.repos.d/CentOS-Base.repo
echo “baseurl=https://mirror.rackspace.com/centos-vault/8.5.2111/BaseOS/$basearch/os” >> /etc/yum.repos.d/CentOS-Base.repo

sudo sed -i -e ‘/mirrorlist=http:\/\/mirrorlist.centos.org\/?release=$releasever&arch=$basearch&repo=/ s/^#*/#/’ -e ‘/baseurl=http:\/\/mirror.centos.org\/$contentdir\/$releasever\// s/^#*/#/’ -e ‘/^\[appstream\]/a baseurl=https://mirror.rackspace.com/centos-vault/8.5.2111/AppStream/$basearch/os’ /etc/yum.repos.d/CentOS-AppStream.repo
echo “baseurl=https://mirror.rackspace.com/centos-vault/8.5.2111/AppStream/$basearch/os” >> /etc/yum.repos.d/CentOS-AppStream.repo

curl -O https://raw.githubusercontent.com/AlmaLinux/almalinux-deploy/master/almalinux-deploy.sh

sudo bash almalinux-deploy.sh

https://github.com/AlmaLinux/almalinux-deploy

Was this article helpful?