Upgrading CentOS 7.6 to CentOS 7.9 version

CentOS 7.6 has reached End of life (EOL) status and will no longer receive updates or security patches. To maintain system support and security, users must upgrade to CentOS 7.9.

This upgrade ensures the operational integrity and protection of system continues uninterrupted.

To upgrade CentOS 7.6 to CentOS 7.9, complete the instructions below.

Steps

  1. Run the following commands to make changes in the repository settings files.
    sed -i s/mirror.centos.org/vault.centos.org/g /etc/yum.repos.d/*.repo
    sed -i s/^#.*baseurl=http/baseurl=http/g /etc/yum.repos.d/*.repo
    sed -i s/^mirrorlist=http/#mirrorlist=http/g /etc/yum.repos.d/*.repo  
  2. Run yum upgrade -y command.
  3. Check the CentOS version using the commandcat /etc/redhat-release.

    The version must be CentOS Linux release 7.9.2009 (Core).

  4. Install python3 using the command yum install python3.
  5. Reboot the system.