Installed dnf packages don't show up

I recently upgraded to Fedora 41. I wanted to clean up my installed packages, but they don’t show up.

└─$ dnf list installed
Updating and loading repositories:
Repositories loaded.
No matching packages to list

└─$ dnf repoquery --installed | wc -l
2749

Additional info:

Linux grandcircus50 6.11.8-300.fc41.x86_64

EDIT: Nevermind. After related posts showed up, I found the answer. dnf5 syntax changed and should be dnf list --installed. Sorry - should have searched better.

https://dnf.readthedocs.io/en/latest/command_ref.html#list-command

The correct command looks to be:
dnf list --installed

2 Likes

Uh sorry, I read this later.