Como todos saben, CentOS 8 alcanzó su EOL el 31 de diciembre de 2021, es hora de actualizar su CentOS 8 Linux a CentOS Stream, que es el futuro del Proyecto CentOS. CentOS ha cambiado su enfoque de CentOS a CentOS stream, que es un flujo intermedio entre Fedora y RHEL. Si planea actualizar CentOS 7 a CentOS 8, entonces es mejor omitir la actualización a CentOS 8 ya que CentOS 7 recibirá soporte hasta 2024. Si es inevitable actualizar, actualice a CentOS Stream como se indica a continuación:
# dnf update -y
# more /etc/redhat-release CentOS Linux release 8.5.2111
Paso 3: Actualice al último paquete de lanzamiento de CentOS Stream. Esto hace que su sistema busque el repositorio de CentOS Stream en lugar del repositorio de CentOS 8.
# dnf install centos-release-stream -y --allowerasing Last metadata expiration check: 0:01:38 ago on Thu 10 Feb 2022 05:07:08 PM IST. Package centos-release-stream-8.1-1.1911.0.7.el8.x86_64 is already installed. Dependencies resolved. ============================================================================================================================================================= Package Architecture Version Repository Size ============================================================================================================================================================= Installing: centos-stream-release noarch 8.6-1.el8 Stream-BaseOS 22 k replacing centos-linux-release.noarch 8.5-1.2111.el8 replacing centos-release-stream.x86_64 8.1-1.1911.0.7.el8 Installing dependencies: centos-stream-repos noarch 8-3.el8 extras 19 k Removing dependent packages: centos-linux-repos noarch 8-3.el8 @baseos 26 k Transaction Summary ============================================================================================================================================================= Install 2 Packages Remove 1 Package Total download size: 42 k Downloading Packages: (1/2): centos-stream-release-8.6-1.el8.noarch.rpm 4.2 kB/s | 22 kB 00:05 (2/2): centos-stream-repos-8-3.el8.noarch.rpm 1.6 kB/s | 19 kB 00:11 ------------------------------------------------------------------------------------------------------------------------------------------------------------- Total 2.4 kB/s | 42 kB 00:17 Running transaction check Transaction check succeeded. Running transaction test Transaction test succeeded. Running transaction Preparing : 1/1 Running scriptlet: centos-stream-release-8.6-1.el8.noarch 1/1 Installing : centos-stream-release-8.6-1.el8.noarch 1/5 Installing : centos-stream-repos-8-3.el8.noarch 2/5 Obsoleting : centos-release-stream-8.1-1.1911.0.7.el8.x86_64 3/5 Obsoleting : centos-linux-release-8.5-1.2111.el8.noarch 4/5 Erasing : centos-linux-repos-8-3.el8.noarch 5/5 warning: /etc/yum.repos.d/CentOS-Linux-PowerTools.repo saved as /etc/yum.repos.d/CentOS-Linux-PowerTools.repo.rpmsave warning: /etc/yum.repos.d/CentOS-Linux-Plus.repo saved as /etc/yum.repos.d/CentOS-Linux-Plus.repo.rpmsave warning: /etc/yum.repos.d/CentOS-Linux-HighAvailability.repo saved as /etc/yum.repos.d/CentOS-Linux-HighAvailability.repo.rpmsave warning: /etc/yum.repos.d/CentOS-Linux-FastTrack.repo saved as /etc/yum.repos.d/CentOS-Linux-FastTrack.repo.rpmsave warning: /etc/yum.repos.d/CentOS-Linux-Extras.repo saved as /etc/yum.repos.d/CentOS-Linux-Extras.repo.rpmsave warning: /etc/yum.repos.d/CentOS-Linux-Devel.repo saved as /etc/yum.repos.d/CentOS-Linux-Devel.repo.rpmsave warning: /etc/yum.repos.d/CentOS-Linux-ContinuousRelease.repo saved as /etc/yum.repos.d/CentOS-Linux-ContinuousRelease.repo.rpmsave warning: /etc/yum.repos.d/CentOS-Linux-BaseOS.repo saved as /etc/yum.repos.d/CentOS-Linux-BaseOS.repo.rpmsave warning: /etc/yum.repos.d/CentOS-Linux-AppStream.repo saved as /etc/yum.repos.d/CentOS-Linux-AppStream.repo.rpmsave Running scriptlet: centos-linux-repos-8-3.el8.noarch 5/5 Verifying : centos-stream-repos-8-3.el8.noarch 1/5 Verifying : centos-stream-release-8.6-1.el8.noarch 2/5 Verifying : centos-linux-release-8.5-1.2111.el8.noarch 3/5 Verifying : centos-release-stream-8.1-1.1911.0.7.el8.x86_64 4/5 Verifying : centos-linux-repos-8-3.el8.noarch 5/5 Installed: centos-stream-release-8.6-1.el8.noarch centos-stream-repos-8-3.el8.noarch Removed: centos-linux-repos-8-3.el8.noarch Complete!
# dnf distro-sync -y
# more /etc/redhat-release CentOS Stream release 8
¡Eso es todo! ¿Le preocupa la vida útil de CentOS Stream? Luego, cambie a una distribución diferente, como Rocky Linux, AlmaLinux u Oracle Linux, que proporciona SOPORTE A LARGO PLAZO (LTS).
Por otro lado, ¿instaló CentOS 8 y se quedó con el error "Error al descargar los metadatos para el repositorio"? Aquí hay una solución.