View Issue Details

IDProjectCategoryView StatusLast Update
0017355CentOS-8dnfpublic2020-05-11 13:03
Reporterbne 
PrioritynormalSeveritymajorReproducibilityalways
Status newResolutionopen 
Product Version8.1.1911 
Target VersionFixed in Version 
Summary0017355: dnf --showduplicates list kernel-devel (e.g.) does only list one kernel version, RHEL8 lists all of them
DescriptionHi,

```
dnf install kernel-devel-4.18.0-147.3.1.el8_1.x86_64
Last metadata expiration check: 0:15:55 ago on Mon 11 May 2020 09:18:17 AM CEST.
No match for argument: kernel-devel-4.18.0-147.3.1.el8_1.x86_64
Error: Unable to find a match: kernel-devel-4.18.0-147.3.1.el8_1.x86_64
```
while on RHEL8
```
sudo dnf install kernel-devel-4.18.0-147.3.1.el8_1.x86_64
Dependencies resolved.
=====================================================================================================================================================================================
 Package Architecture Version Repository Size
=====================================================================================================================================================================================
Installing:
 kernel-devel x86_64 4.18.0-147.3.1.el8_1 rhel-8-for-x86_64-baseos-rpms 13 M

Transaction Summary
=====================================================================================================================================================================================
Install 1 Package
```
I found issues like this for CentOS7 already, partially it was mentioned as a feature, but in fact in all my CentOS7 installation I was able to pin to specific/old version.

I want to install a old kernel version, to build kernel modules for it. I am pretty sure this worked some time ago, maybe this issue showed up with the latest dnf update?
Steps To Reproduce* Update CentOS8 to latest greatest
* dnf install kernel-devel-4.18.0-147.3.1.el8_1.x86_64
Additional Information```
[root@hpsmc04 ~]# cat /etc/centos-release
CentOS Linux release 8.1.1911 (Core)
[root@hpsmc04 ~]# rpm -qa | grep dnf | sort
dnf-4.2.7-7.el8_1.noarch
dnf-data-4.2.7-7.el8_1.noarch
dnf-plugin-spacewalk-2.8.5-11.module_el8.1.0+211+ad6c0bc7.noarch
dnf-plugins-core-4.0.8-3.el8.noarch
libdnf-0.35.1-9.el8_1.x86_64
python3-dnf-4.2.7-7.el8_1.noarch
python3-dnf-plugin-spacewalk-2.8.5-11.module_el8.1.0+211+ad6c0bc7.noarch
python3-dnf-plugins-core-4.0.8-3.el8.noarch
python3-libdnf-0.35.1-9.el8_1.x86_64
```

```
[bne@jsfuc01 ~]$ cat /etc/redhat-release
Red Hat Enterprise Linux release 8.1 (Ootpa)
[bne@jsfuc01 ~]$ rpm -qa | grep dnf | sort
dnf-4.2.7-7.el8_1.noarch
dnf-data-4.2.7-7.el8_1.noarch
dnf-plugins-core-4.0.8-3.el8.noarch
dnf-plugin-spacewalk-2.8.5-11.module+el8.1.0+3455+3ddf2832.noarch
dnf-plugin-subscription-manager-1.25.17-1.el8.x86_64
libdnf-0.35.1-9.el8_1.x86_64
python3-dnf-4.2.7-7.el8_1.noarch
python3-dnf-plugins-core-4.0.8-3.el8.noarch
python3-dnf-plugin-spacewalk-2.8.5-11.module+el8.1.0+3455+3ddf2832.noarch
python3-libdnf-0.35.1-9.el8_1.x86_64
```
TagsNo tags attached.

Activities

martinetd

martinetd

2020-05-11 12:48

reporter   ~0036916

This isn't a dnf problem; that's just what's declared in the repodata for centos8 right now

$ curl -s http://mirror.centos.org/centos-8/8/BaseOS/x86_64/os/repodata/76e398a0cd87a7c4587ba19da6b17f9e565f71b18fd3a7f6c8b5acc47311d0f2-primary.xml.gz | zgrep '<name>kernel-devel'
  <name>kernel-devel</name>

So I assume this is somewhat on purpose, but that has annoyed me too.. The rpms are still there, they're just excluded from metadata, so you'll need to manually fetch kernel versions you need. I believe dnf will let you run dnf downgrade http://whatever/yourkerneldevel.rpm
bne

bne

2020-05-11 13:03

reporter   ~0036917

Thank you very much for the pointer, I did not even think about this unfortunately.

Luckily we have a mirror, which is atm a 1-to-1 copy of upstream, but triggering "createrepo" was sufficient to get the corresponding metadata which include all the packages!

Issue History

Date Modified Username Field Change
2020-05-11 07:55 bne New Issue
2020-05-11 12:48 martinetd Note Added: 0036916
2020-05-11 13:03 bne Note Added: 0036917