深圳网站设计推荐柚米,ui个人作品集网站,网站全部用根目录,网站not found由于CentOS 8的官方支持已在2021年12月31日结束#xff0c;官方镜像中的CentOS 8包已被移除。因此#xff0c;如果您仍然需要运行CentOS 8并更新其yum源#xff0c;您可以考虑使用以下步骤来配置一个可用的yum源#xff0c;例如阿里云的镜像源。 https://mirrors.aliyun.co…由于CentOS 8的官方支持已在2021年12月31日结束官方镜像中的CentOS 8包已被移除。因此如果您仍然需要运行CentOS 8并更新其yum源您可以考虑使用以下步骤来配置一个可用的yum源例如阿里云的镜像源。 https://mirrors.aliyun.com/centos/8-stream/?spma2c6h.25603864.0.0.132666edLGinrb 1.备份现有的yum源配置文件 cd /etc/yum.repos.d/ mkdir backup mv *.repo backup/ 2.编辑yum源配置文件 a.手动创建CentOS-AppStream.repo vim CentOS-AppStream.repo i [appstream] nameCentOS-8-stream - AppStream baseurlhttps://mirrors.aliyun.com/centos/8-stream/AppStream/$basearch/os/ gpgcheck1 enabled1 gpgkeyfile:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial 保存退出 b.手动创建CentOS-BaseOS.repo vim CentOS-BaseOS.repo i [baseos] nameCentOS-8-stream - BaseOS baseurlhttps://mirrors.aliyun.com/centos/8-stream/BaseOS/$basearch/os/ gpgcheck1 enabled1 gpgkeyfile:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial 保存退出 c.手动创建CentOS-Devel.repo vim CentOS-Devel.repo i [baseos] nameCentOS-8-stream - Devel baseurlhttps://mirrors.aliyun.com/centos/8-stream/Devel/$basearch/os/ gpgcheck1 enabled1 gpgkeyfile:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial 保存退出 d.手动创建CentOS-Extras.repo vim CentOS-Extras.repo i [baseos] nameCentOS-8-stream - Extras baseurlhttps://mirrors.aliyun.com/centos/8-stream/Extras/$basearch/os/ gpgcheck1 enabled1 gpgkeyfile:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial 保存退出 4.清空并重建yum缓存 yum clean all yum makecache 5.更新软件包 yum update