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 Copy linkLink copied to clipboard!
Use the following DNF commands to search and examine available or installed software for your Red Hat Enterprise Linux (RHEL) 10 system.
| Command | Description |
|---|---|
|
| Search for a package by using term related to the package. |
|
| Search for enabled DNF repositories for a selected package and its version. |
|
| List information about all installed and available packages. |
|
| List all packages installed on your system. |
|
| List all packages in all enabled repositories that are available to install. |
|
| List all enabled repositories on your system. |
|
| List all disabled repositories on your system. |
|
| List both enabled and disabled repositories. |
|
| List additional information about the repositories. |
|
| Display details of an available package. |
|
| Display details of a package installed on your system. |
|
| View the number of installed and available groups. |
|
| List all installed and available groups. |
|
| List mandatory and optional packages included in a particular group. |
A.2. Commands for installing content in RHEL Copy linkLink copied to clipboard!
Use the following commands to install software on your Red Hat Enterprise Linux (RHEL) 10 system.
| Command | Description |
|---|---|
|
| Install a package. |
|
| Install multiple packages and their dependencies simultaneously. |
|
| Specify the architecture of the package by appending it to the package name when installing packages on a multilib system (AMD64, Intel 64 machine). |
|
| Install a binary by using the path to the binary as an argument. |
|
| Install a local RPM file. |
|
| Install a remote package by using a package URL. |
|
| Install a package group by a group name. |
|
| Install a package group by the group ID. |
A.3. Commands for removing content in RHEL Copy linkLink copied to clipboard!
Use the following DNF commands to uninstall software from your Red Hat Enterprise Linux (RHEL) 10 system.
| Command | Description |
|---|---|
|
| Remove a particular package and all dependent packages. |
|
| Remove multiple packages and their unused dependencies simultaneously. |
|
| Remove a package group by the group name. |
|
| Remove a package group by the group ID. |