"yum list available/installed" command is not working properly in rawhide image

I have pulled fedora:rawhide image and updated using “yum update -y” and then tried yum list available , yum list installed, same commands are not working even while using dnf also.

Updating and loading repositories:
 Fedora - Rawhide - Developmental packages for the next Fedora release                          100% |   1.4 MiB/s |  21.7 MiB |  00m15s
 Fedora rawhide openh264 (From Cisco) - x86_64                                                  100% |   2.4 KiB/s |   6.5 KiB |  00m03s
Repositories loaded.
No matching packages to list
[root@f69ac743f430 /]# yum list installed
Updating and loading repositories:
Repositories loaded.
No matching packages to list
[root@f69ac743f430 /]# dnf list installed
Updating and loading repositories:
Repositories loaded.
No matching packages to list
[root@f69ac743f430 /]# dnf list available
Updating and loading repositories:
Repositories loaded.
No matching packages to list
[root@f69ac743f430 /]# yum list installed
Updating and loading repositories:
Repositories loaded.
No matching packages to list
[root@f69ac743f430 /]# yum list all
Updating and loading repositories:
Repositories loaded.
No matching packages to list```

when I tried to do the same behaviour in fedora:latest, I'm getting output for these commands. could you please help me with this issue

Note: I have observed that the repodata folder path in rawhide is downloaded to "/var/cache/libdnf5/" where as in fedora:latest they are downloaded to /var/cache/dnf/ folder.

In Rawhide the dnf command is provided by dnf5. yum is just an alias to dnf.

dnf5 does not seem to provide a list command as you know it, see DNF5 Commands — dnf5 documentation and DNF5 Package Management Utility — dnf5 documentation

instead you use:

 dnf5 repoquery --available
 dnf5 repoquery --installed
 dnf5 repoquery --userinstalled
3 Likes

When you type dnf list installed, you are searching for packages named installed.

In dnf5, you have to use the proper options like dnf list --installed. Yes, the lazy way worked with dnf4, but it’s ambiguous.

Both yum and dnf are symlinks to dnf5 (after you upgraded to dnf5), so you can continue to type yum if you want.


@augenauf dnf5 is still in rapid development. Please point people to pinned issues on dnf5 repo for status of various commands rather than the docs.

5 Likes