List software packages

List available or installed packages on your Red Hat Enterprise Linux (RHEL) 10 system by using the DNF tool. You can use this information to confirm current versions and identify ready-to-install content to ensure your environment stays consistent and up-to-date.

Procedure

List the latest versions of all available packages, including architectures, version numbers, and the repository they where installed from:
$ dnf list --all
...
postgresql.x86_64            16.4-1.el10      rhel-AppStream
postgresql-contrib.x86_64    16.4-1.el10      rhel-AppStream
postgresql-docs.x86_64       16.4-1.el10      rhel-AppStream
postgresql-jdbc.noarch       42.7.1-6.el10    rhel-AppStream
...

The @ sign in front of a repository indicates that the package in this line is currently installed.

Alternatively, to display all available packages, including version numbers and architectures, enter:

$ dnf repoquery
...
postgresql-0:16.4-1.el10.x86_64
postgresql-contrib-0:16.4-1.el10.x86_64
postgresql-docs-0:16.4-1.el10.x86_64
postgresql-jdbc-0:42.7.1-6.el10.noarch
postgresql-odbc-0:16.00.0000-4.el10.x86_64
...

Optionally, you can filter the output by using other options instead of --all, for example:

  • Use --installed to list only installed packages.
  • Use --available to list all available packages.
  • Use --upgrades to list packages for which newer versions are available.