centos6 yum 安装 更新

centos yum安装 官方停止更新了。需要换镜像

 

sed -i "s|enabled=1|enabled=0|g" /etc/yum/pluginconf.d/fastestmirror.conf
mv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backup
curl -o /etc/yum.repos.d/CentOS-Base.repo https://www.xmpan.com/Centos-6-Vault-Aliyun.repo
yum clean all
yum makecache

 

posted @ 2021-09-02 09:35  kpwong  阅读(168)  评论(0编辑  收藏  举报