- 从centos找到centos7.6的地址
- 国内大部分都没有历史版本 无法进行特定版本的升级,这里直接使用官网的,稳定
- 使用官网镜像下载会慢,配合小飞机加速下载, 如果国内有镜像就从国内下载
- proxy=socks5://192.168.2.43:1080 代理加速写在/etc/yum.conf中
cat >>/etc/yum.repos.d/CentOS-Base.repo <<\EOF
# 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