1、清华大学yum源 参考:https://mirrors.tuna.tsinghua.edu.cn/help/centos/ 2、网易yum源 参考:http://mirrors.163.com/.help/centos.html # rm -rf /etc/yum.repo.d/* # wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.163.com/.help/CentOS7-Base-163.repo # yum clean all && yum makecache 3、阿里云yum源 # wget -O /etc/yum.repos.d/CentOS-aliyun.repo http://mirrors.aliyun.com/repo/Centos-7.repo 4、中科大yum源 # wget -O /etc/yum.repos.d/CentOS-Base.repo 'https://lug.ustc.edu.cn/wiki/_export/code/mirrors/help/centos?codeblock=3' 5、上交大yum源 # cat /etc/yum.repos.d/CentOS-Base.repo [base] name=CentOS-7- Base baseurl=http://ftp.sjtu.edu.cn/centos/$releasever/os/$basearch/ gpgcheck=1 gpgkey= http://ftp.sjtu.edu.cn/centos/RPM-GPG-KEY-CentOS-7 [update] name=CentOS-7 - Updates baseurl= http://ftp.sjtu.edu.cn/centos/$releasever/updates/$basearch/ gpgcheck=1 gpgkey= http://ftp.sjtu.edu.cn/centos/RPM-GPG-KEY-CentOS-7 [extras] name=CentOS-7 - Extras baseurl= http://ftp.sjtu.edu.cn/centos/$releasever/extras/$basearch/ gpgcheck=1 gpgkey= http://ftp.sjtu.edu.cn/centos/RPM-GPG-KEY-CentOS-7 [centosplus] name=CentOS-7 - Plus baseurl= http://ftp.sjtu.edu.cn/centos/$releasever/centosplus/$basearch/ gpgcheck=1 enabled=0 gpgkey= http://ftp.sjtu.edu.cn/centos/RPM-GPG-KEY-CentOS-7 Other 北京理工大学: http://mirror.bit.edu.cn 参考地址 兰州大学:http://mirror.lzu.edu.cn 厦门大学:http://mirrors.xmu.edu.cn 中国科学技术大学:http://mirrors.ustc.edu.cn 东北大学:http://mirror.neu.edu.cn 官方yum源 CentOS官方:http://mirror.centos.org/ 本文转载链接:https://blog.csdn.net/inrgihc/article/details/105765247