rpm-software-management / dnf5

Next-generation RPM package management system
Other
257 stars 87 forks source link

`dnf list installed` produces no output #1836

Closed birdie-github closed 2 weeks ago

birdie-github commented 2 weeks ago
# dnf list installed 
Updating and loading repositories:
Repositories loaded.
No matching packages to list

dnf5-5.2.6.2-1.fc41.x86_64

pkratoch commented 2 weeks ago

Hi, this is expected, since now to filter installed packages, the optional subcommand was changed to option --installed (similarly with other subcommands). The disadvantage of having an optional subcommand was that you couldn't list packages with names like "installed" or "all" which could technically exist, but their name would clash with a subcommand.

birdie-github commented 2 weeks ago

@pkratoch

You really could consider creating a cheat sheet of differences between dnf and dnf5.

Too many basic commands now are different between the two.

pkratoch commented 2 weeks ago

Sorry, I should have linked it right away. There is https://github.com/rpm-software-management/dnf5/blob/main/doc/changes_from_dnf4.7.rst that documents changes between dnf4 and dnf5. The change in optional subcommands is in subsection https://github.com/rpm-software-management/dnf5/blob/main/doc/changes_from_dnf4.7.rst#optional-subcommands