发表于 4月9日4月9日 前言Centos7.6升级系统版本到Centos7.9一、查看当前版本cat /etc/redhat-release 结果输出CentOS Linux release 7.6.1810 (Core)二、更换yum源并升级1.更换yum源备份已有源文件后更换为阿里云的源文件yum install wget -ymkdir -p /etc/yum.repos.d/CentOS-Base.repo.backupmv /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo.backupwget -O /etc/yum.repos.d/CentOS-Base.repo https://mirrors.aliyun.com/repo/Centos-7.repoyum makecachewget -O /etc/yum.repos.d/epel-7.repo http://mirrors.aliyun.com/repo/epel-7.repoyum -y install epel-release2.执行升级并重启yum update -y;reboot;输出已安装: iwl7260-firmware.noarch 0:25.30.13.0-82.el7_9 kernel.x86_64 0:3.10.0-1160.108.1.el7 作为依赖被安装: bc.x86_64 0:1.06.95-13.el7 bind-export-libs.x86_64 32:9.11.4-26.P2.el7_9.15 geoipupdate.x86_64 0:2.5.0-2.el7 三、查看升级结果cat /etc/redhat-release 结果输出CentOS Linux release 7.9.2009 (Core)总结记录一下centos7.6升级到7.9的方法。
加入讨论
您现在可以发表并稍后注册. 如果您是会员,请现在登录来参与讨论.