Dnf does not show all packages - Rocky 8

In a Rocky 8.10 installation, dnf does not show all packages that are available on the mirror.

On that server, I have (among others) the AppStream repo with URL http://our-mirror/rocky/8/AppStream/x86_64/os, and I can look directly into that directory on the mirror.

I was asked to install perl-sigtrap, which dnf did not find.

In that directory on the mirror, the rpm is there: perl-sigtrap-1.09-473.module+el8.10.0+1616+0d20cc68.noarch.rpm

Now, I would be completely fine learning that it is not possible to combine this perl with that perl, perl with module-perl or whatever.

However, I cannot understand why an otherwise working mirror (where I have updated the repo-data in the meanwhile) would have an rpm that is not accessible to dnf on an otherwise working server.

Yeah, it’s a weird one that. On Rocky 9 you can search for it and it appears as a normal package.

root@rocky9:~# dnf list *sigtrap*
Last metadata expiration check: 3:14:37 ago on Thu 28 Aug 2025 11:18:24 AM CEST.
Installed Packages
perl-sigtrap.noarch                                     1.09-481.1.el9_6                                      @appstream

unfortunately the same command on RL8 doesn’t show anything. I even checked dnf module list on this too, and nothing there either. Even if I attempt to search the devel repo, since according to here: https://pkgs.org/search/?q=perl-sigtrap it shows up in AppStream and Devel too.

@neil @label do you perhaps know why this package doesn’t show up?

It’s a module package. Unless the module is enabled or hotfixes are enabled (not recommended), that package will not show up in a dnf list or repoquery. There’s no other way around this.

If you’re trying to tell dnf to list module packages, you need to use module info.

[root@cm01 ~]# dnf module info perl | grep sigtrap
                 : perl-sigtrap-0:1.09-473.module+el8.10.0+1616+0d20cc68.noarch
[root@cm01 ~]#

Removing the grep will list everything and you can find that this package belongs to perl:5.32.

1 Like

Thx @label

root@rocky8:~# dnf module list perl
Last metadata expiration check: 1:21:55 ago on Thu 28 Aug 2025 02:28:26 PM CEST.
Rocky Linux 8 - AppStream
Name            Stream                 Profiles                       Summary                                           
perl            5.24                   common [d], minimal            Practical Extraction and Report Language          
perl            5.26 [d][e]            common [d], minimal            Practical Extraction and Report Language          
perl            5.30                   common [d], minimal            Practical Extraction and Report Language          
perl            5.32                   common [d], minimal            Practical Extraction and Report Language          

Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled

with the default being 5.26, then:

dnf module enable perl:5.32

should sort that out and make it available.