centos 设置阿里的yum源

rm /etc/yum.repos.d/CentOS-Base.repo


curl -o /etc/yum.repos.d/CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-6.repo


rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7


yum clean all
yum makecache

posted @ 2021-12-13 10:41  林嘉瑜  阅读(348)  评论(0编辑  收藏  举报