3.2. Listing software packages
You can use DNF to display a list of packages and their versions that are available in the repositories. If required, you can filter this list and, for example, only list packages for which updates are available.
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
--installedto list only installed packages. -
Use
--availableto list all available packages. -
Use
--upgradesto list packages for which newer versions are available.
-
Use