CentOS7 Change repo end of life

Hi. CentOS 7 reached end-of-maintenance yesterday
(https://blog.centos.org/2023/04/end-dates-are-coming-for-centos-stream-8-and-centos-linux-7/),
and it looks like this is propagating through the mirrors. Note also
that CentOS 8 Stream was archived last month and is no longer being
updated. Your best bet is to migrate to CentOS 9 Stream (our image is
named CENTOS9S-64-STD) if possible. If not, you can update your nodes
to point to the repositories at https://vault.centos.org/ . Change each
file in /etc/yum.repos.d/ , commenting the `mirrorlist=` line, and
uncommenting the `mirror=` line, and replacing `mirror.centos.org` with
`vault.centos.org`, as I show below:

#mirrorlist=http://mirrorlist.centos.org/?release=$stream&arch=$basearch&repo=AppStream&infra=$infra
baseurl=http://vault.centos.org/$contentdir/$stream/AppStream/$basearch/os/

Then you’ll be able to run `yum makecache`.

 

———————————————–
wget https://mirrors.proen.co.th/CentOS/7.9.2009/CentOS-Base.repo -O /etc/yum.repos.d/CentOS-Base.repo 
wget https://mirrors.proen.co.th/CentOS/7.9.2009/CentOS-CR.repo -O /etc/yum.repos.d/CentOS-CR.repo
wget https://mirrors.proen.co.th/CentOS/7.9.2009/CentOS-fasttrack.repo -O /etc/yum.repos.d/CentOS-fasttrack.repo
———————————————–

cat CentOS-x86_64-kernel.repo 
[centos-kernel]
name=CentOS LTS Kernels for $basearch
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=kernel&infra=$infra
baseurl=http://mirror.nsc.liu.se/altarch/7/kernel/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

[centos-kernel-experimental]
name=CentOS Experimental Kernels for $basearch
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=experimental&infra=$infra
baseurl=https://mirror.nsc.liu.se/altarch/7/experimental/$basearch/
enabled=0
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

 

cat CentOS-Base.repo
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client.  You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can try the 
# remarked out baseurl= line instead.
#
#

[base]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
baseurl=https://mirror.nsc.liu.se/centos/$releasever/os/$basearch/
baseurl=http://mirror.nsc.liu.se/centos-store/7.9.2009/os/x86_64/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

#released updates 
[updates]
name=CentOS-$releasever - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
baseurl=https://mirror.nsc.liu.se/centos/$releasever/updates/$basearch/
baseurl=http://mirror.nsc.liu.se/centos-store/7.9.2009/updates/x86_64/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

#additional packages that may be useful
[extras]
name=CentOS-$releasever - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra
baseurl=https://mirror.nsc.liu.se/centos/$releasever/extras/$basearch/
baseurl=http://mirror.nsc.liu.se/centos-store/7.9.2009/extras/x86_64/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

#additional packages that extend functionality of existing packages
[centosplus]
name=CentOS-$releasever - Plus
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus&infra=$infra
baseurl=https://mirror.nsc.liu.se/centos/$releasever/centosplus/$basearch/
baseurl=http://mirror.nsc.liu.se/centos-store/7.9.2009/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7