Jak všichni víte, CentOS 8 dosáhl EOL 31. prosince 2021, je čas upgradovat váš CentOS 8 Linux na CentOS Stream, což je budoucnost projektu CentOS. CentOS přesunul své zaměření z CentOS na stream CentOS, což je střední proud mezi Fedorou a RHEL. Pokud plánujete upgradovat CentOS 7 na CentOS 8, pak je lepší upgrade na CentOS 8 přeskočit, protože CentOS 7 bude mít podporu až do roku 2024! Pokud je nevyhnutelné upgradovat, upgradujte na CentOS Stream, jak je uvedeno níže:
Krok 1: Aktualizujte svůj CentOS 8 na nejnovější verzi
# dnf update -y
Krok 2: Zkontrolujte verzi OS
# more /etc/redhat-release CentOS Linux release 8.5.2111
Krok 3: Aktualizujte na nejnovější verzi CentOS Stream. Díky tomu bude váš systém hledat úložiště CentOS Stream spíše než úložiště 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!
Krok 4: Synchronizujte nainstalované balíčky s nejnovějšími dostupnými verzemi.
# dnf distro-sync -y
Krok 5: Ověřte vydání OS
# more /etc/redhat-release CentOS Stream release 8
A je to! Bojíte se o životnost CentOS Stream? Poté přejděte na jinou distribuci, jako je Rocky Linux, AlmaLinux nebo Oracle Linux, která poskytuje DLOUHODOBOU PODPORU (LTS).
Na druhou stranu, instalace CentOS 8 a uvízla s chybou „Nepodařilo se stáhnout metadata pro repo“? Zde je oprava.