Convert Centos 8 to Centos 8 Stream
-
To upgrade, install centos-release-stream package from extras repository:
dnf install centos-release-stream dnf distro-sync
The distro-sync subcommand is used to synchronize installed packages to the latest versions on upgrades. When no argument is provided, dnf updates all packages from active repositories.
And that’s it. You should be on CentOS Stream 8!
cat /etc/centos-release CentOS Stream release 8
-
@sandeep Hello!
Are we in any danger when using these commands?
Should we take something into account before doing the conversion?
Greetings!
-
@sandeep I just tested on a centos 8 server with CWP and got these errors:
[root@vps ~]# dnf distro-sync
CentOS-Stream - AppStream 20 MB/s | 6.3 MB 00:00
CentOS-Stream - Base 602 kB/s | 2.3 MB 00:03
CentOS-Stream - Extras 8.0 kB/s | 7.0 kB 00:00
Error:
Problem: package libgs-devel-9.25-7.el8.x86_64 requires libgs(x86-64) = 9.25-7.el8, but none of the providers can be installed- cannot install both libgs-9.27-1.el8.x86_64 and libgs-9.25-7.el8.x86_64
- cannot install the best update candidate for package libgs-devel-9.25-7.el8.x86_64
- cannot install the best update candidate for package libgs-9.25-7.el8.x86_64
(try to add '--allowerasing' to command line to replace conflicting packages or '--skip-broken' to skip uninstallable packages or '--nobest' to use not only best candidate packages)
-
@josepp said in Convert Centos 8 to Centos 8 Stream:
libgs
the package is in appstream
[root@localhost ~]# dnf list libgs Librepo version: 1.12.0 with CURL_GLOBAL_ACK_EINTR support (libcurl/7.61.1 OpenSSL/1.1.1g zlib/1.2.11 brotli/1.0.6 libidn2/2.2.0 libpsl/0.20.2 (+libidn2/2.2.0) libssh/0.9.4/openssl/zlib nghttp2/1.33.0) Last metadata expiration check: 0:00:16 ago on Fri 11 Dec 2020 02:16:33 PM EST. Available Packages libgs.i686 9.25-7.el8 appstream libgs.x86_64 9.25-7.el8 appstream
try to install via dnf and then run
dnf distro-sync
rpm -e --nodeps libgs libgs-devel dnf install libgs libgs-devel
*** ensure
/etc/yum.repos.d/CentOS-Linux-PowerTools.repo
repo is enabled[powertools] name=CentOS Linux $releasever - PowerTools mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo=PowerTools&infra=$infra #baseurl=http://mirror.centos.org/$contentdir/$releasever/PowerTools/$basearch/os/ gpgcheck=1 enabled=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
-
@josepp backup is must when you're doing major upgrades. Since CWP will not support centos 8 anymore the recommended version is centos 8 stream.