CentOS--Yum
yum源
vim /etc/yum.repos.d/CentOS-Base.repo,备份一份,直接使用下面的文件替换
1 #CentOS-Base.repo 2 [base] 3 name=CentOS-$7 - Base - 163.com 4 #mirrorlist=http://mirrorlist.centos.org/?release=$7&arch=$basearch&repo=os 5 baseurl=http://mirrors.163.com/centos/7/os/$basearch/ 6 gpgcheck=1 7 gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7 8 9 #released updates 10 [updates] 11 name=CentOS-$7 - Updates - 163.com 12 #mirrorlist=http://mirrorlist.centos.org/?release=$7&arch=$basearch&repo=updates 13 baseurl=http://mirrors.163.com/centos/7/updates/$basearch/ 14 gpgcheck=1 15 gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7 16 17 #additional packages that may be useful 18 [extras] 19 name=CentOS-$7 - Extras - 163.com 20 #mirrorlist=http://mirrorlist.centos.org/?release=$7&arch=$basearch&repo=extras 21 baseurl=http://mirrors.163.com/centos/7/extras/$basearch/ 22 gpgcheck=1 23 gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7 24 25 #additional packages that extend functionality of existing packages 26 [centosplus] 27 name=CentOS-$7 - Plus - 163.com 28 baseurl=http://mirrors.163.com/centos/7/centosplus/$basearch/ 29 gpgcheck=1 30 enabled=0 31 gpgkey=http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-7
原创文章,转载请说明出处,谢谢合作