On Fedora 39, executing the dnf module list
command does not produce any output.
Previously on Fedora 38, this command worked correctly. For example, to view the available streams of the PostgreSQL module, I could use dnf module list postgresql
to list the available streams of the PostgreSQL module.
$ dnf module list postgresql
Fedora Modular 37 - aarch64
Name Stream Profiles Summary
postgresql 12 client, server PostgreSQL module
postgresql 13 client, server PostgreSQL module
postgresql 14 client, server PostgreSQL module
postgresql 15 client, server PostgreSQL module
Fedora Modular 37 - aarch64 - Updates
Name Stream Profiles Summary
postgresql 12 client, server PostgreSQL module
postgresql 13 client, server PostgreSQL module
postgresql 14 client, server PostgreSQL module
postgresql 15 client, server PostgreSQL module
Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled
However, when I execute it on Fedora 39, there is no output. Why is this happening?
$ sudo dnf module list
Last metadata expiration check: 0:21:49 ago on Mon 11 Dec 2023 01:02:34 AM CST.
$ sudo dnf module info postgresql
Last metadata expiration check: 0:21:53 ago on Mon 11 Dec 2023 01:02:34 AM CST.
Unable to resolve argument postgresql
Error: No matching Modules to list
I have tried the following methods to fix the issue, but none of them worked. Why is the dnf module list command not functioning?
DNF Cache Issues
It could be due to outdated or corrupted metadata cache of DNF. Try clearing the cache and resynchronizing the repository information:
$ sudo dnf clean all
$ sudo dnf makecache
System Updates
If your system has not been updated for a long time, you might need to update it first:
$ sudo dnf update
Host Info
$ hostnamectl
Static hostname: fedora39-bin
Pretty hostname: dev-env-bin
Icon name: computer-vm
Chassis: vm 🖴
Machine ID: f2e1fc6f47d8484ba3804011f0bd423f
Boot ID: db317976494441638c4fbe44792128e2
Virtualization: parallels
Operating System: Fedora Linux 39 (Workstation Edition)
CPE OS Name: cpe:/o:fedoraproject:fedora:39
OS Support End: Tue 2024-11-12
OS Support Remaining: 11month 1d
Kernel: Linux 6.6.4-200.fc39.aarch64
Architecture: arm64
Hardware Vendor: Parallels International GmbH.
Hardware Model: Parallels ARM Virtual Machine
Firmware Version: 19.1.1 (54734)