服装网站建设策划,企业云邮箱,房产备案查询系统,外贸网站建站平台2020 年 12 月 8 号#xff0c;CentOS 官方宣布了停止维护 CentOS Linux 的计划#xff0c;并推出了 CentOS Stream 项目#xff0c;CentOS Linux 8 作为 RHEL 8 的复刻版本#xff0c;生命周期缩短#xff0c;于 2021 年 12 月 31 日停止更新并停止维护#xff08;EOLCentOS 官方宣布了停止维护 CentOS Linux 的计划并推出了 CentOS Stream 项目CentOS Linux 8 作为 RHEL 8 的复刻版本生命周期缩短于 2021 年 12 月 31 日停止更新并停止维护EOL更多的信息可以查看 CentOS 官方公告。如果需要更新 CentOS需要将镜像从 mirror.centos.org 更改为 vault.centos.org
1.首先进入到 yum 的 repos 目录
cd /etc/yum.repos.d/2.修改 centos 文件内容
sed -i s/mirrorlist/#mirrorlist/g /etc/yum.repos.d/CentOS-*sed -i s|#baseurlhttp://mirror.centos.org|baseurlhttp://vault.centos.org|g /etc/yum.repos.d/CentOS-*3.重新生成缓存
yum makecache4.运行 yum update
yum update -y