Centos7 更换yum 中科大源

本文共有489个字,页面加载耗时0.001秒,关键词:linuxcentos

有时候163和阿里的源里面缺少软件,所以要更换为更全的中科大的源.

Centos5
wget -O /etc/yum.repos.d/CentOS-Base.repo https://lug.ustc.edu.cn/wiki/_export/code/mirrors/help/centos?codeblock=1
Centos6
wget -O /etc/yum.repos.d/CentOS-Base.repo https://lug.ustc.edu.cn/wiki/_export/code/mirrors/help/centos?codeblock=2
Centos7
wget -O /etc/yum.repos.d/CentOS-Base.repo https://lug.ustc.edu.cn/wiki/_export/code/mirrors/help/centos?codeblock=3

以下命令生成缓存
yum clean all

yum makecache

扫码在手机查看