问题:
rhel系统设置国内源,加速包的下载及依赖解析!
[root@bogon ~]# cat /etc/redhat-release
Red Hat Enterprise Linux Server release 7.0 (Maipo)
腾讯软件源
https://mirrors.cloud.tencent.com/
解决:
[root@bogon ~]# cd /etc/yum.repos.d/
[root@bogon yum.repos.d]# rm -rf //清理存在xxx.repo
[root@bogon yum.repos.d]# wget -O /etc/yum.repos.d/CentOS-Base.repo http://mirrors.cloud.tencent.com/repo/centos7_base.repo
[root@bogon yum.repos.d]# sed -i 's#$releasever#7#g' CentOS-Base.repo ###替换了,不然路径不对
[root@bogon yum.repos.d]# wget -O /etc/yum.repos.d/epel.repo http://mirrors.cloud.tencent.com/repo/epel-7.repo
[root@bogon yum.repos.d]# sed -i 's#$releasever#7#g' epel.repo
[root@bogon yum.repos.d]# yum clean all && yum makecache
[root@bogon yum.repos.d]# yum repolist
Loaded plugins: langpacks
repo id repo name status
epel/x86_64 EPEL for redhat/centos 7 - x86_64 13,199
extras/x86_64 Qcloud centos extras - x86_64 335
os/x86_64 Qcloud centos os - x86_64 10,097
updates/x86_64 Qcloud centos updates - x86_64 1,487
repolist: 25,118