Centos7.4升级到Centos7.6

1.修改yum源

[base]
name=CentOS-$releasever - Base
baseurl=http://mirrors.aliyun.com/centos/7.6.1810/os/x86_64/
gpgcheck=0

[updates]
name=CentOS-$releasever - Updates
baseurl=https://mirrors.aliyun.com/centos/7.6.1810/updates/x86_64/
gpgcheck=0

[extras]
name=CentOS-$releasever - Extras
baseurl=https://mirrors.aliyun.com/centos/7.6.1810/extras/x86_64/
gpgcheck=0

2.执行更新命令

#yum -y update

3.重启

#reboot

4.验证

# uname -a

# cat /etc/redhat-release

原文地址:https://www.cnblogs.com/larrypeng/p/11512883.html