vi /etc/yum.repos.d/CentOS-Base.repo
copy/paste the following
[base]
name=CentOS-$releasever - Base
baseurl=http://vault.centos.org/7.9.2009/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
[updates]
name=CentOS-$releasever - Updates
baseurl=http://vault.centos.org/7.9.2009/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
[extras]
name=CentOS-$releasever - Extras
baseurl=http://vault.centos.org/7.9.2009/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
[centosplus]
name=CentOS-$releasever - Plus
baseurl=http://vault.centos.org/7.9.2009/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
yum clean all
======================
[root@localhost VBox_GAs_7.0.10]# yum update -y
CentOS Stream 8 - AppStream 0.0 B/s | 0 B 00:03
Errors during downloading metadata for repository 'appstream':
- Curl error (6): Couldn't resolve host name for http://mirrorlist.centos.org/?release=8-stream&arch=x86_64&repo=AppStream&infra=stock [Could not resolve host: mirrorlist.centos.org]
Error: Failed to download metadata for repo 'appstream': Cannot prepare internal mirrorlist: Curl error (6): Couldn't resolve host name for http://mirrorlist.centos.org/?release=8-stream&arch=x86_64&repo=AppStream&infra=stock [Could not resolve host: mirrorlist.centos.org]
Do Below !!!!!!
=====================================
[root@localhost VBox_GAs_7.0.10]# cd /etc/yum.repos.d/
[root@localhost yum.repos.d]# sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
or
[root@oraafd yum.repos.d]# sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
[root@oraafd yum.repos.d]# yum clean all
====================================
[root@localhost yum.repos.d]# yum update -y
CentOS Stream 8 - AppStream 14 MB/s | 29 MB 00:02
CentOS Stream 8 - BaseOS 19 MB/s | 10 MB 00:00
CentOS Stream 8 - Extras 127 kB/s | 18 kB 00:00
CentOS Stream 8 - Extras common packages 56 kB/s | 8.0 kB 00:00
Dependencies resolved.
==============================================================================================================================================================================================================
Package Architecture Version Repository Size
==============================================================================================================================================================================================================
Installing:
kernel x86_64 4.18.0-553.6.1.el8 baseos 10 M
Upgrading:
bpftool x86_64 4.18.0-553.6.1.el8 baseos 11 M
firefox x86_64 115.11.0-1.el8 appstream 116 M
glibc x86_64 2.28-251.el8.2 baseos 2.3 M
glibc-all-langpacks x86_64 2.28-251.el8.2 baseos 26 M
glibc-common x86_64 2.28-251.el8.2 baseos 1.0 M
glibc-devel x86_64 2.28-251.el8.2 baseos 89 k
glibc-gconv-extra x86_64 2.28-251.el8.2 baseos 1.7 M
glibc-headers x86_64 2.28-251.el8.2 baseos 585 k
glibc-langpack-en x86_64 2.28-251.el8.2 baseos 941 k
hostname x86_64 3.20-7.el8.0.1 baseos 32 k
hyperv-daemons x86_64 0-1.31.20180415git.el8 appstream 13 k
hyperv-daemons-license noarch 0-1.31.20180415git.el8 appstream 20 k
hypervfcopyd x86_64 0-1.31.20180415git.el8 appstream 19 k
hypervkvpd x86_64 0-1.31.20180415git.el8 appstream 28 k
hypervvssd x86_64 0-1.31.20180415git.el8 appstream 21 k
jq x86_64 1.6-9.el8 appstream 203 k
kernel-headers x86_64 4.18.0-553.6.1.el8 baseos 12 M
kernel-tools x86_64 4.18.0-553.6.1.el8 baseos 11 M
kernel-tools-libs x86_64 4.18.0-553.6.1.el8 baseos 10 M
less x86_64 530-3.el8 baseos 165 k
libtirpc x86_64 1.1.4-12.el8 baseos 114 k
python3-perf x86_64 4.18.0-553.6.1.el8 baseos 10 M
sos noarch 4.7.1-2.el8 baseos 1.2 M
tuned noarch 2.22.1-4.el8.1 baseos 460 k
xorg-x11-server-Xwayland x86_64 21.1.3-16.el8 appstream 967 k
Installing dependencies:
kernel-core x86_64 4.18.0-553.6.1.el8 baseos 44 M
kernel-modules x86_64 4.18.0-553.6.1.el8 baseos 36 M
Installing weak dependencies:
kernel-devel x86_64 4.18.0-553.6.1.el8 baseos 28 M
Transaction Summary
==============================================================================================================================================================================================================
Install 4 Packages
Upgrade 25 Packages
======
cat /etc/centos-release
CentOS Linux release 8.5.2111
yum clean all
yum update -y
sed -i 's/mirrorlist/#mirrorlist/g' /etc/yum.repos.d/CentOS-*
sed -i 's|#baseurl=http://mirror.centos.org|baseurl=http://vault.centos.org|g' /etc/yum.repos.d/CentOS-*
yum update -y