CentOS 8.1,8.2 and 8.3 older kernels cannot be installed

Issues related to applications and software problems and general support
Post Reply
gryu
Posts: 1
Joined: 2021/06/12 22:09:31

CentOS 8.1,8.2 and 8.3 older kernels cannot be installed

Post by gryu » 2021/06/12 22:36:07

Hi,

I am trying to install older kernel and kernel-devel packages for testing purposes on CentOS 8.4.
New CentOS-Vault.repo file is created to use vaulted pre CentOS 8.4 repos

Below is my repo file:

Code: Select all

# 8.0.1905
[C8.0.1905-baseos]
name=CentOS-8.0.1905 - BaseOS
baseurl=http://vault.centos.org/8.0.1905/BaseOS/$basearch/os/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
enabled=1

[C8.0.1905-appstream]
name=CentOS-8.0.1905 - AppStream
baseurl=http://vault.centos.org/8.0.1905/AppStream/$basearch/os/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
enabled=1

[C8.0.1905-extras]
name=CentOS-8.0.1905 - Extras
baseurl=http://vault.centos.org/8.0.1905/extras/$basearch/os/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
enabled=1

# 8.1.1911
[C8.1.1911-baseos]
name=CentOS-8.1.1911 - BaseOS
baseurl=http://vault.centos.org/8.1.1911/BaseOS/$basearch/os/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
enabled=1

[C8.1.1911-appstream]
name=CentOS-8.1.1911 - AppStream
baseurl=http://vault.centos.org/8.1.1911/AppStream/$basearch/os/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
enabled=1

[C8.1.1911-extras]
name=CentOS-8.1.1911 - Extras
baseurl=http://vault.centos.org/8.1.1911/extras/$basearch/os/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
enabled=1

# 8.2.2004
[C8.2.2004-baseos]
name=CentOS-8.2.2004 - BaseOS
baseurl=http://vault.centos.org/8.2.2004/BaseOS/$basearch/os/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
enabled=1

[C8.2.2004-appstream]
name=CentOS-8.2.2004 - AppStream
baseurl=http://vault.centos.org/8.2.2004/AppStream/$basearch/os/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
enabled=1

[C8.2.2004-extras]
name=CentOS-8.2.2004 - Extras
baseurl=http://vault.centos.org/8.2.2004/extras/$basearch/os/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
enabled=1

#C8.3.2011
[C8.3.2011-baseos]
name=CentOS-8.3.2011 - BaseOS
baseurl=http://vault.centos.org/8.3.2011/BaseOS/$basearch/os/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
enabled=1

[C8.3.2011-appstream]
name=CentOS-8.3.2011 - AppStream
baseurl=http://vault.centos.org/8.3.2011/AppStream/$basearch/os/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
enabled=1

[C8.3.2011-extras]
name=CentOS-8.3.2011 - Extras
baseurl=http://vault.centos.org/8.3.2011/extras/$basearch/os/
gpgcheck=1
gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-centosofficial
enabled=1
When I try to list all kernel versions form vaulted repositories, only the last (per release) kernel version is available for CentOS 8.1,8.2 and 8.3. And this is not the case for 8.0:

Code: Select all

[root@76608772077a yum.repos.d]# yum list available kernel --showduplicates --disablerepo=* --enablerepo=C8*-baseos --available
Failed to set locale, defaulting to C.UTF-8
Last metadata expiration check: 0:00:16 ago on Sat Jun 12 22:31:31 2021.
Available Packages
kernel.x86_64                                                                                          4.18.0-80.el8                                                                                                   C8.0.1905-baseos
kernel.x86_64                                                                                          4.18.0-80.1.2.el8_0                                                                                             C8.0.1905-baseos
kernel.x86_64                                                                                          4.18.0-80.4.2.el8_0                                                                                             C8.0.1905-baseos
kernel.x86_64                                                                                          4.18.0-80.7.1.el8_0                                                                                             C8.0.1905-baseos
kernel.x86_64                                                                                          4.18.0-80.7.2.el8_0                                                                                             C8.0.1905-baseos
kernel.x86_64                                                                                          4.18.0-80.11.1.el8_0                                                                                            C8.0.1905-baseos
kernel.x86_64                                                                                          4.18.0-80.11.2.el8_0                                                                                            C8.0.1905-baseos
kernel.x86_64                                                                                          4.18.0-147.8.1.el8_1                                                                                            C8.1.1911-baseos
kernel.x86_64                                                                                          4.18.0-193.28.1.el8_2                                                                                           C8.2.2004-baseos
kernel.x86_64                                                                                          4.18.0-240.22.1.el8_3                                                                                           C8.3.2011-baseos
I can fallback to getting older kernel versions from the URL, but I rather understand why older kernels are not listed for CentOS 8.1,8.2 and 8.3

EDIT:

Looks like this is broken for all CentOS 8 packages (not just kernel):

The following versions of the package are available in the vault repository as files in Packages folder (https://vault.centos.org/8.3.2011/BaseO ... /Packages/)

Code: Select all

* python3-perf-4.18.0-240.1.1.el8_3.x86_64.rpm
* python3-perf-4.18.0-240.10.1.el8_3.x86_64.rpm
* python3-perf-4.18.0-240.15.1.el8_3.x86_64.rpm
* python3-perf-4.18.0-240.22.1.el8_3.x86_64.rpm

Code: Select all

[root@76608772077a yum.repos.d]# yum list --showduplicates --available --disablerepo=* --enablerepo=C8.3* python3-perf
Failed to set locale, defaulting to C.UTF-8
Last metadata expiration check: 0:58:22 ago on Sun Jun 13 05:34:33 2021.
Available Packages
python3-perf.x86_64 4.18.0-240.22.1.el8_3 C8.3.2011-baseos
With "showduplicates" yum list shows only a single package.

Bug on the subject is open since 2020-05-11:
https://bugs.centos.org/view.php?id=17355

Ideas how to work around this issues besides creating you own mirror and running `createrepo` manually ?

Post Reply