Scroll to navigation

DNF5-LIST(8) dnf5 DNF5-LIST(8)

NAME

dnf5-list - List Command

SYNOPSIS

dnf5 list [options] [<package-spec-NI>...]

DESCRIPTION

Prints lists of packages based on the provided parameters.

If terminal is available, list of the packages is colored, packages available for reinstall are (by default) colored with bold green and packages available for upgrade with bold blue. This behavior can be adjusted in dnf5.conf(5) via color_list_available_upgrade and color_list_available_reinstall options.

OPTIONS

Show all versions of the packages, not only the latest one.


Filters installed packages by the ID of the repository they were installed from.


List only installed packages.

List only available packages.

List only extras: packages installed on the system that are not available in any known repository.

List only packages installed on the system that are obsoleted by packages in any known repository.

List only packages recently added to the repositories.

List only available upgrades for installed packages.

List only packages that will be removed by the autoremove command <#autoremove-command-ref-label>.

Request JSON output format.


EXAMPLES

List installed and available packages.

List all available packages, including all available versions.

List installed and available packages whose names start with kernel.


JSON OUTPUT

dnf5 list --json

The command returns a JSON object with the following structure:

  • keys represent a section of the “pretty” CLI output
  • values represent the packages in that section as an array of objects with the following structure:
  • name (string): package name
  • arch (string): package architecture
  • evr (string): available update version
  • repository (string): repository ID from which the update is available
  • obsoletes (array): (only for the “Obsoleting packages” section) list of the packages that obsolete this package (they have the same structure as above, omitting obsoletes)




SEE ALSO

dnf5-specs(7), Patterns specification <#specs-misc-ref-label>



Author

See AUTHORS.md in dnf5 source distribution.

Copyright

Contributors to the dnf5 project.

February 19, 2026