dnf5-list - Man Page

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

--showduplicates
Show all versions of the packages, not only the latest one.
--installed-from-repo=REPO_ID,...
Filters installed packages by the ID of the repository they were installed from.
--installed
List only installed packages.
--available
List only available packages.
--extras
List only extras: packages installed on the system that are not available in any known repository.
--obsoletes
List only packages installed on the system that are obsoleted by packages in any known repository.
--recent
List only packages recently added to the repositories.
--upgrades
List only available upgrades for installed packages.
--autoremove
List only packages that will be removed by the autoremove command <#autoremove-command-ref-label>.
--json
Request JSON output format.

Examples

dnf5 list
List installed and available packages.
dnf5 list --available --showduplicates
List all available packages, including all available versions.
dnf5 list kernel*
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:

See Also

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

Author

See AUTHORS.md in dnf5 source distribution.

Referenced By

dnf5(8).

The man page dnf-list(8) is an alias of dnf5-list(8).

Mar 02, 2026 dnf5