linux更换清华yum源
1.可从清华镜像官网获取 :link
2.移除或修改/etc/yum.repos.d下的repo文件,复制一份CentOS-Base.repo,将以上图片的内容复制到文本即可,这里以CentOS7为例
[root@git-client3 yum.repos.d]# cat CentOS-Base.repo
# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the mirrorlist= does not work for you, as a fall back you can