操作系统centos7yum源配置
zphj1987centos7yum源配置
备注
默认的源可能是国外源,下载比较慢,所以替换下地址为国内源比较好
清华源
1 2
| mv /etc/yum.repos.d/* /opt/ vim /etc/yum.repos.d/my.repo
|
内容如下:
有四个源,默认开启base和epel,其它两个自行开启
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28
| [centos7-base] name=centos7-base baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/7/os/x86_64/ gpgcheck=0 enable=1
[centos7-updates] name=centos7-updates baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/7/updates/x86_64/ gpgcheck=0 enable=0
[centos7-extras] name=centos7-extras baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/7/extras/x86_64/ gpgcheck=0 enable=0
[centos7-epel] name=centos7-epel baseurl=https://mirrors.tuna.tsinghua.edu.cn/epel/7/x86_64/ gpgcheck=0 enable=1 [centos7-plus] name=centos7-plus baseurl=https://mirrors.tuna.tsinghua.edu.cn/centos/7/centosplus/x86_64/ gpgcheck=0 enabled=0
|