Appendix A. DNF commands list


Use the following DNF commands to install, update, remove, and query system content.

A.1. Commands for listing content in RHEL

Use the following DNF commands to search and examine available or installed software for your Red Hat Enterprise Linux (RHEL) 10 system.

Expand
CommandDescription

dnf search <term>

Search for a package by using term related to the package.

dnf repoquery <package_name>

Search for enabled DNF repositories for a selected package and its version.

dnf list

List information about all installed and available packages.

dnf list --installed

dnf repoquery --installed

List all packages installed on your system.

dnf list --available

dnf repoquery

List all packages in all enabled repositories that are available to install.

dnf repolist

List all enabled repositories on your system.

dnf repolist --disabled

List all disabled repositories on your system.

dnf repolist --all

List both enabled and disabled repositories.

dnf repoinfo

List additional information about the repositories.

dnf info <package_name>

dnf repoquery --info <package_name>

Display details of an available package.

dnf repoquery --info --installed <package_name>

Display details of a package installed on your system.

dnf group summary

View the number of installed and available groups.

dnf group list

List all installed and available groups.

dnf group info <group_name>

List mandatory and optional packages included in a particular group.

A.2. Commands for installing content in RHEL

Use the following commands to install software on your Red Hat Enterprise Linux (RHEL) 10 system.

Expand
CommandDescription

dnf install <package_name>

Install a package.

dnf install <package_name_1> <package_name_2>

Install multiple packages and their dependencies simultaneously.

dnf install <package_name>.<architecture>

Specify the architecture of the package by appending it to the package name when installing packages on a multilib system (AMD64, Intel 64 machine).

dnf install <path_to_file>

Install a binary by using the path to the binary as an argument.

dnf install <path_to_RPM_file>

Install a local RPM file.

dnf install <package_url>

Install a remote package by using a package URL.

dnf group install <group_name>

Install a package group by a group name.

dnf group install <group_ID>

Install a package group by the group ID.

A.3. Commands for removing content in RHEL

Use the following DNF commands to uninstall software from your Red Hat Enterprise Linux (RHEL) 10 system.

Expand
CommandDescription

dnf remove <package_name>

Remove a particular package and all dependent packages.

dnf remove <package_name_1> <package_name_2>

Remove multiple packages and their unused dependencies simultaneously.

dnf group remove <group_name>

Remove a package group by the group name.

dnf group remove <group_ID>

Remove a package group by the group ID.

Red Hat logoGithubredditYoutubeTwitter

Learn

Try, buy, & sell

Communities

About Red Hat Documentation

We help Red Hat users innovate and achieve their goals with our products and services with content they can trust. Explore our recent updates.

Making open source more inclusive

Red Hat is committed to replacing problematic language in our code, documentation, and web properties. For more details, see the Red Hat Blog.

About Red Hat

We deliver hardened solutions that make it easier for enterprises to work across platforms and environments, from the core datacenter to the network edge.

Theme

© 2026 Red Hat
Back to top