1、设置新的yum目录
mkdir /etc/yum.repos.d
2、 下载配置(要区分自己的系统版本,不然肯定不通过)
CentOS 7
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo
CentOS 8
wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-8.repo
3、清除文件并重建元数据缓存
yum clean all
yum makecache
4、最后更新软件包
yum update -y
4663

被折叠的 条评论
为什么被折叠?



