DATE:  

As announced by CentOS.org the CentOS Linux 8 has reached End Of Life (EOL) on December 31st, 2021

This means that since 1st of January 2022 CentOS 8 doesn't receive any updates, either nomal bug fixes or fixes for security vulnerabilities.

Since January 31st 2022 also CentOS 8 official repositories were closed, and are no more available from any of the known mirrors. The CentOS archive was moved to  vault.centos.org

Additionally, with this deadline (31 Dic. 2021) falling during a time when many of our team, as well as many of our users, will be out of the office, we intend to bend the usual EOL process by keeping this content available until January 31st.

At that time, or in the event of a serious security bug in this time window (Defined as anything with a VCSS v3 score of 9 or greater), this content will be removed from our mirrors, and moved to vault.centos.org where it will be archived permanently, since we will not be able to provide updates to the content after the EOL date. Source: https://www.centos.org/centos-linux-eol/

Possible solutions:


In case you choose to migrate from CentOS 8 to CentOS Stream 8 we are advising you to use the following comands:

# Become root
$ sudo su -

# Update the CentOS 8 repositories:
$ for k in $(ls /etc/yum.repos.d/CentOS-Linux-*.repo); do sudo sed -e 's/^mirrorlist=/#mirrorlist=/' -e 's/#baseurl=http:\/\/mirror/baseurl=http:\/\/vault/' -i $k; done

# Update to the latest version of CentOS 8 & reboot
$ sudo dnf update
$ sudo shutdown -r now

In some cases it could happens that the first update fails reporting SSL certificate problems like this

[...]
CentOS Linux 8 - AppStream 0.0 B/s | 0 B 00:01
Errors during downloading metadata for repository 'appstream':
- Curl error (60): Peer certificate cannot be authenticated with given CA certificates for https://vault.centos.org/centos/8/AppStream/x86_64/os/repodata/repomd.xml [SSL certificate problem: certificate has expired]
Error: Failed to download metadata for repo 'appstream': Cannot download repomd.xml: Cannot download repodata/repomd.xml: All mirrors were tried
[...]

If it happens the workaround is to add the parameter sslverify=0  in /etc/dnf/dnf.conf  and re-run dnf update . Remember to remove the sslverify  parameter before going on and after the first reboot.

# Update to the latest version of CentOS 8 & reboot
$ sudo dnf update
$ sudo shutdown -r now

# Install CentOS Stream packages repositories 
$ sudo dnf in centos-release-stream

# Migrate from CentOS 8 to CentOS Stream 8 & reboot
$ sudo dnf swap centos-linux-repos centos-stream-repos
$ sudo dnf distro-sync
$ sudo shutdown -r now


Due to the high number of packages that will be updated or installed during the migration it is not guaranteed the correct functioning of previously configured services. You have to check them and ensure they are working properly.


Reference: