Upgrade CentOS 7.6 to CentOS 7.9

Download CentOS 7.9

Download address: isoredirect.centos.org/centos/7/is…

Checking the Current Version

cat /etc/centos-release

Mount ios files

mkdir /mnt/cdrom

mount ./CentOS-7-x86_64-DVD-2009.iso /mnt/cdrom

Back up system repO files

cd /etc

cp -rf yum.repos.d yum.repos.d.bak

Edit the local source REPO file

cd yum.repos.d

vi CentOS-Media.repo

The edited content is as follows:

[c7-media]

name=CentOS Media

baseurl=file:///mnt/cdrom/

gpgcheck=1

enabled=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

Start Upgrade installation

yum –disablerepo=* –enablerepo=c7-media update

The upgrade takes several minutes. Please be patient.

Check the upgraded version

cat /etc/centos-release