After F41 upgrade, dnf says no packages are installed

After I upgraded to Fedora 41, “dnf list installed” returns “No matching packages to list” whereas “dnf4 list installed” returns many packages. Is this expected? I realise that Fedora 41 has switched to dnf5. What I’m asking is: is it expected that dnf5 can’t see the packages that I previously installed with dnf4? If it is expected, then my follow up question is: what is the recommended way to migrate my dnf4 packages to dnf5?

With dnf5 the command should be dnf list --installed. Otherwise apparently it is searching for the package called installed.

4 Likes