Skip to main content

This article concerns Centron 22.10. (If you are using an earlier version, you need to migrate your platform to a supported OS and a supported version, as versions older than 22.10 are no longer supported.)

 

Problem
 

On June 30 2024, CentOS 7 reached its end of life.

Here are several things that may impact existing CentOS 7-based servers:

This means that you will get an error if you try to run a yum install or yum upgrade command on a Centreon 22.10.


Solution


If you get this error, you should replace all your occurrences of mirrorlist.centos.org, mirror.centos.org by vault.centos.org in all CentOS repofiles. The repo files can be found in /etc/yum.repos.d:

-rw-r--r-- 1 root root 1661 Jul  1 15:32 CentOS-Base.repo
-rw-r--r-- 1 root root 1308 Jul 1 15:32 CentOS-CR.repo
-rw-r--r-- 1 root root 649 Oct 23 2020 CentOS-Debuginfo.repo
-rw-r--r-- 1 root root 630 Oct 23 2020 CentOS-Media.repo
-rw-r--r-- 1 root root 970 Jul 1 15:33 CentOS-SCLo-scl-rh.repo
-rw-r--r-- 1 root root 996 Jul 1 15:33 CentOS-SCLo-scl.repo
-rw-r--r-- 1 root root 1332 Jul 1 15:32 CentOS-Sources.repo
-rw-r--r-- 1 root root 8515 Oct 23 2020 CentOS-Vault.repo
-rw-r--r-- 1 root root 313 Jul 1 15:32 CentOS-fasttrack.repo
-rw-r--r-- 1 root root 614 Jul 1 15:32 CentOS-x86_64-kernel.repo

For each CentOS repofile,

  • comment mirrorlist

  • uncomment baseurl and replace mirror.centos.org by vault.centos.org 


Here is an example:

# CentOS-Base.repo
#
# The mirror system uses the connecting IP address of the client and the
# update status of each mirror to pick mirrors that are updated to and
# geographically close to the client. You should use this for CentOS updates
# unless you are manually picking other mirrors.
#
# If the #mirrorlist= does not work for you, as a fall back you can try the
# remarked out baseurl= line instead.
#
#

base]
name=CentOS-$releasever - Base
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=os&infra=$infra
baseurl=http://vault.centos.org/centos/$releasever/os/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

#released updates
eupdates]
name=CentOS-$releasever - Updates
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=updates&infra=$infra
baseurl=http://vault.centos.org/centos/$releasever/updates/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

#additional packages that may be useful
fextras]
name=CentOS-$releasever - Extras
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=extras&infra=$infra
baseurl=http://vault.centos.org/centos/$releasever/extras/$basearch/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

#additional packages that extend functionality of existing packages
gcentosplus]
name=CentOS-$releasever - Plus
#mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=centosplus&infra=$infra
baseurl=http://vault.centos.org/centos/$releasever/centosplus/$basearch/
gpgcheck=1
enabled=0
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7

 

Be the first to reply!

Reply