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

posted @ 2019-09-12 17:05  larry-peng  阅读(4022)  评论(0编辑  收藏  举报