Managing software with the DNF tool
Managing content in the RPM repositories by using the DNF software management tool
Abstract
Providing feedback on Red Hat documentation
We appreciate your feedback on our documentation. Let us know how we can improve it.
Submitting feedback through Jira (account required)
- Log in to the Jira website.
- Click Create in the top navigation bar
- Enter a descriptive title in the Summary field.
- Enter your suggestion for improvement in the Description field. Include links to the relevant parts of the documentation.
- Click Create at the bottom of the dialogue.
Chapter 1. Distribution of content in RHEL 10
In the following sections, learn how the software is distributed in Red Hat Enterprise Linux (RHEL) 10.
1.1. Repositories
Red Hat Enterprise Linux distributes content through different repositories, for example:
- BaseOS
- Content in the BaseOS repository consists of the core set of the underlying operating system functionality that provides the foundation for all installations. This content is available in the RPM format and is subject to support terms similar to those in earlier releases of RHEL.
- AppStream
- Content in the AppStream repository includes additional user-space applications, runtime languages, and databases in support of the varied workloads and use cases.
Both the BaseOS and AppStream content sets are required by RHEL and are available in all RHEL subscriptions.
- CodeReady Linux Builder
- The CodeReady Linux Builder repository is available with all RHEL subscriptions. It provides additional packages for use by developers. Red Hat does not support packages included in the CodeReady Linux Builder repository.
1.2. Application Streams
Red Hat provides multiple versions of user-space components as Application Streams, and they are updated more frequently than the core operating system packages. This provides more flexibility to customize RHEL without impacting the underlying stability of the platform or specific deployments.
Application Streams are available in the following formats:
- RPM format
- Software Collections
RHEL 10 provides initial Application Stream versions as RPMs, which you can install by using the dnf install
command.
Chapter 2. Configuring DNF
The configuration of DNF and related utilities is stored in the [main]
section of the /etc/dnf/dnf.conf
file.
2.1. Viewing the current DNF configurations
The [main]
section in the /etc/dnf/dnf.conf
file contains only the settings that have been explicitly set. However, you can display all settings of the [main]
section, including the ones that have not been set and which, therefore, use their default values.
Procedure
Display the global DNF configuration:
dnf config-manager --dump
# dnf config-manager --dump
Copy to Clipboard Copied!
2.2. Setting DNF main options
The /etc/dnf/dnf.conf
file contains one [main]
section. The key-value pairs in this section affect how DNF operates and treats repositories.
Procedure
-
Edit the
/etc/dnf/dnf.conf
file. -
Update the
[main]
section according to your requirements. - Save the changes.
2.3. Managing DNF plug-ins
Every installed plug-in can have its own configuration file in the /etc/dnf/plugins/
directory. Name plug-in configuration files in this directory <plug-in_name>.conf
. By default, plug-ins are typically enabled. To disable a plug-in in one of these configuration files, add the following to the file:
[main] enabled=False
[main]
enabled=False
2.4. Enabling and disabling DNF plug-ins
In the DNF tool, plug-ins are loaded by default. However, you can influence which plug-ins DNF loads.
Disable all plug-ins only for diagnosing a potential problem. DNF requires certain plug-ins, such as product-id
and subscription-manager
, and disabling them causes Red Hat Enterprise Linux to not be able to install or update software from the Content Delivery Network (CDN).
Procedure
Use one of the following methods to influence how DNF uses plug-ins:
To enable or disable loading of DNF plug-ins globally, add the
plugins
parameter to the[main]
section of the/etc/dnf/dnf.conf
file.-
Set
plugins=1
(default) to enable loading of all DNF plug-ins. -
Set
plugins=0
to disable loading of all DNF plug-ins.
-
Set
-
To disable a particular plug-in, add
enabled=False
to the[main]
section in the/etc/dnf/plugins/<plug-in_name>.conf
file. To disable all DNF plug-ins for a particular command, append the
--noplugins
option to the command. For example, to disable DNF plug-ins for a single update command, enter:dnf --noplugins update
# dnf --noplugins update
Copy to Clipboard Copied! To disable certain DNF plug-ins for a single command, append the
--disableplugin=plugin-name
option to the command. For example, to disable a certain DNF plug-in for a single update command, enter:dnf update --disableplugin=<plugin_name>
# dnf update --disableplugin=<plugin_name>
Copy to Clipboard Copied! To enable certain DNF plug-ins for a single command, append the
--enableplugin=plugin-name
option to the command. For example, to enable a certain DNF plug-in for a single update command, enter:dnf update --enableplugin=<plugin_name>
# dnf update --enableplugin=<plugin_name>
Copy to Clipboard Copied!
2.5. Excluding packages from DNF operations
You can configure DNF to exclude packages from any DNF operation by using the excludepkgs
option. You can define excludepkgs
in the [main]
or the repository section of the /etc/dnf/dnf.conf
file.
You can temporarily disable excluding the configured packages from an operation by using the --disableexcludes
option.
Procedure
Exclude packages from the DNF operation by adding the following line to the
/etc/dnf/dnf.conf
file:excludepkgs=<package_name_1>,<package_name_2> ...
excludepkgs=<package_name_1>,<package_name_2> ...
Copy to Clipboard Copied! Alternatively, use global expressions instead of package names to define packages you want to exclude. For more information, see Specifying global expressions in DNF input.
Chapter 3. Searching for RHEL content
In the following sections, learn how to locate and examine content in the AppStream and BaseOS repositories by using the DNF software management tool.
3.1. Searching for software packages
To identify which package provides the software you require, you can use DNF to search the repositories.
Procedure
Depending on your scenario, use one of the following options to search the repository:
To search for a term in the name or summary of packages, enter:
dnf search <term>
$ dnf search <term>
Copy to Clipboard Copied! To search for a term in the name, summary, or description of packages, enter:
dnf search --all <term>
$ dnf search --all <term>
Copy to Clipboard Copied! Note that searching additionally in the description by using the
--all
option is slower than a normal search operation.To search for a package name and list the package name and its version in the output, enter:
dnf repoquery <package_name>
$ dnf repoquery <package_name>
Copy to Clipboard Copied! To search for which package provides a file, specify the file name or the path to the file:
dnf provides <file_name>
$ dnf provides <file_name>
Copy to Clipboard Copied!
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
$ 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 ...
Copy to Clipboard Copied! 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
$ 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 ...
Copy to Clipboard Copied! 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.
NoteYou can filter the results by appending global expressions as arguments. For more details, see Specifying global expressions in DNF input.
-
Use
3.3. Displaying package information
You can query DNF repositories to display further details about a package, such as the following:
- Version
- Release
- Architecture
- Package size
- Description
Procedure
Display information about one or more available packages:
dnf info <package_name>
$ dnf info <package_name>
Copy to Clipboard Copied! This command displays the information for the currently installed package and, if available, its newer versions that are in the repository. Alternatively, use the following command to display the information for all packages with the specified name in the repository:
dnf repoquery --info <package_name>
$ dnf repoquery --info <package_name>
Copy to Clipboard Copied! NoteYou can filter the results by appending global expressions as arguments. For details, see Specifying global expressions in DNF input.
3.4. Listing package groups and packages they provide
Package groups bundle multiple packages, and you can use package groups to install all packages assigned to a group in a single step. However, before the installation, you must identify the name of the required package group.
Procedure
List both installed and available groups:
dnf group list
$ dnf group list
Copy to Clipboard Copied! Note that you can filter the results by appending the
--installed
and--available
option to thednf group list
command. By using the--hidden
option, you can display hidden groups in the output.List mandatory, optional, and default packages contained in a particular group:
dnf group info "<group_name>"
$ dnf group info "<group_name>"
Copy to Clipboard Copied! NoteYou can filter the results by appending global expressions as arguments. For more details, see Specifying global expressions in DNF input.
Optional: View the number of installed and available groups:
dnf group summary
$ dnf group summary
Copy to Clipboard Copied!
3.5. Listing repositories
To get an overview of repositories that are enabled and disabled on your system, you can list them.
Procedure
List all enabled repositories on your system:
dnf repolist
$ dnf repolist
Copy to Clipboard Copied! To display only certain repositories, append one of the following options to the command:
-
Append
--disabled
to list only disabled repositories. -
Append
--all
to list both enabled and disabled repositories.
-
Append
Optional: List additional information about the repositories:
dnf repoinfo <repository_name>
$ dnf repoinfo <repository_name>
Copy to Clipboard Copied! NoteYou can filter the results by using global expressions. For details, see Specifying global expressions in DNF input.
3.6. Specifying global expressions in DNF input
You can filter the results of dnf
commands by appending one or more global expressions as arguments.
Procedure
Use one of the following methods if you use global expressions in
dnf
commands:Enclose the entire global expression in single or double quotation marks:
dnf provides "*/<file_name>"
# dnf provides "*/<file_name>"
Copy to Clipboard Copied! Note that you must precede
<file_name>
either by/
for an absolute path or*/
to use a wildcard if the full path is unknown.Escape the wildcard characters by preceding them with a backslash (
\
) character:dnf provides \*/<file_name>
# dnf provides \*/<file_name>
Copy to Clipboard Copied!
Chapter 4. Installing RHEL content
In the following sections, learn how to install Red Hat Enterprise Linux content by using the DNF software management tool.
4.1. Installing packages
If a software is not part of the default installation, you can manually install it. DNF automatically resolves and installs dependencies.
Prerequisites
Procedure
Use one of the following methods to install packages:
To install packages from the repositories, enter:
dnf install <package_name_1> <package_name_2> ...
# dnf install <package_name_1> <package_name_2> ...
Copy to Clipboard Copied! If you install packages on a system that supports multiple architectures, such as
i686
andx86_64
, you can specify the architecture of the package by appending it to the package name:dnf install <package_name>.<architecture>
# dnf install <package_name>.<architecture>
Copy to Clipboard Copied! To install a package if you only know the path to the file the package provides but not the package name, you can use this path to install the corresponding package:
dnf install <path_to_file>
# dnf install <path_to_file>
Copy to Clipboard Copied! To install a local RPM file, enter:
dnf install <path_to_RPM_file>
# dnf install <path_to_RPM_file>
Copy to Clipboard Copied! If the package has dependencies, specify the paths to these RPM files as well. Otherwise, DNF downloads the dependencies from the repositories or fails if they are not available in the repositories.
4.2. Installing package groups
Package groups bundle multiple packages, and you can use package groups to install all packages assigned to a group in a single step.
Prerequisites
Procedure
Install a package group:
dnf group install <group_name_or_ID>
# dnf group install <group_name_or_ID>
Copy to Clipboard Copied!
Chapter 5. Updating RHEL content
With the DNF software management tool, you can check if your system has any pending updates. You can list packages that need updating and choose to update a single package, multiple packages, or all packages at once. If any of the packages you choose to update have dependencies, these dependencies are updated as well.
5.1. Checking for updates
To identify which packages installed on your system have available updates, you can list them.
Procedure
Check the available updates for installed packages:
dnf check-update
# dnf check-update
Copy to Clipboard Copied! The output returns the list of packages and their dependencies that have an update available.
5.2. Updating packages
You can use DNF to update a single package, a package group, or all packages and their dependencies at once.
When applying updates to the kernel, dnf
always installs a new kernel regardless of whether you are using the dnf upgrade
or dnf install
command. Note that this only applies to packages identified by using the installonlypkgs
DNF configuration option. Such packages include, for example, the kernel
, kernel-core
, and kernel-modules
packages.
Procedure
Depending on your scenario, use one of the following options to apply updates:
To update all packages and their dependencies, enter:
dnf upgrade
# dnf upgrade
Copy to Clipboard Copied! To update a single package, enter:
dnf upgrade <package_name>
# dnf upgrade <package_name>
Copy to Clipboard Copied! To update packages only from a specific package group, enter:
dnf group upgrade <group_name>
# dnf group upgrade <group_name>
Copy to Clipboard Copied!
Chapter 6. Automating software updates in RHEL
DNF Automatic is an alternative command-line interface to DNF that is suited for automatic and regular execution by using systemd timers, cron jobs, and other such tools.
DNF Automatic synchronizes package metadata as needed, checks for updates available, and then performs one of the following actions depending on how you configure the tool:
- Exit
- Download updated packages
- Download and apply the updates
The outcome of the operation is then reported by a selected mechanism, such as the standard output or email.
6.1. Installing DNF Automatic
To check and download package updates automatically and regularly, you can use the DNF Automatic tool that is provided by the dnf-automatic
package.
Procedure
Install the
dnf-automatic
package:dnf install dnf-automatic
# dnf install dnf-automatic
Copy to Clipboard Copied!
Verification
Verify the successful installation by confirming the presence of the
dnf-automatic
package:rpm -qi dnf-automatic
# rpm -qi dnf-automatic
Copy to Clipboard Copied!
6.2. DNF Automatic configuration file
By default, DNF Automatic uses /etc/dnf/automatic.conf
as its configuration file to define its behavior.
The configuration file is separated into the following topical sections:
[commands]
Sets the mode of operation of DNF Automatic.
WarningSettings of the operation mode from the
[commands]
section are overridden by settings used by a systemd timer unit for all timer units exceptdnf-automatic.timer
.[emitters]
Defines how the results of DNF Automatic are reported.
[command]
Defines the command emitter configuration.
[command_email]
Provides the email emitter configuration for an external command used to send email.
[email]
Provides the email emitter configuration.
[base]
Overrides settings from the main configuration file of DNF.
With the default settings of the /etc/dnf/automatic.conf
file, DNF Automatic checks for available updates, downloads them, and reports the results to standard output.
6.3. Enabling DNF Automatic
To run DNF Automatic once, you must start a systemd timer unit. However, if you want to run DNF Automatic periodically, you must enable the timer unit. You can use one of the timer units provided in the dnf-automatic
package, or you can create a drop-in file for the timer unit to adjust the execution time.
Prerequisites
-
You specified the behavior of DNF Automatic by modifying the
/etc/dnf/automatic.conf
configuration file.
Procedure
To enable and execute a systemd timer unit immediately, enter:
systemctl enable --now <timer_name>
# systemctl enable --now <timer_name>
Copy to Clipboard Copied! If you want to only enable the timer without executing it immediately, omit the
--now
option.You can use the following timers:
-
dnf-automatic-download.timer
: Downloads available updates. -
dnf-automatic-install.timer
: Downloads and installs available updates. -
dnf-automatic-notifyonly.timer
: Reports available updates. -
dnf-automatic.timer
: Downloads, downloads and installs, or reports available updates.
-
Verification
Verify that the timer is enabled:
systemctl status <systemd timer unit>
# systemctl status <systemd timer unit>
Copy to Clipboard Copied! Optional: Check when each of the timers on your system ran the last time:
systemctl list-timers --all
# systemctl list-timers --all
Copy to Clipboard Copied!
6.4. Overview of the systemd timer units included in the dnf-automatic package
The systemd timer units take precedence and override the settings in the /etc/dnf/automatic.conf
configuration file when downloading and applying updates.
For example if you set download_updates = yes
in the /etc/dnf/automatic.conf
configuration file, but you have activated the dnf-automatic-notifyonly.timer unit
, the packages will not be downloaded.
Timer unit | Function | Overrides the apply_updates and download_updates settings in the [commands] section of the /etc/dnf/automatic.conf file? |
---|---|---|
| Downloads packages to cache and makes them available for updating.
This timer unit does not install the updated packages. To perform the installation, you must run the | Yes |
| Downloads and installs updated packages. | Yes |
| Downloads only repository data to keep the repository cache up-to-date and notifies you about available updates. This timer unit does not download or install the updated packages. | Yes |
|
The behavior of this timer when downloading and applying updates is specified by the settings in the This timer downloads packages, but does not install them. | No |
Chapter 7. Removing RHEL content
In the following sections, learn how to remove content in Red Hat Enterprise Linux 10 by using the DNF software management tool.
7.1. Removing installed packages
You can use DNF to remove a single package or multiple packages installed on your system. If any of the packages you choose to remove have unused dependencies, DNF uninstalls these dependencies as well.
Procedure
Remove particular packages:
dnf remove <package_name_1> <package_name_2> ...
# dnf remove <package_name_1> <package_name_2> ...
Copy to Clipboard Copied!
7.2. Removing package groups
Package groups bundle multiple packages. You can use package groups to remove all packages assigned to a group in a single step.
Procedure
Remove package groups by the group name or group ID:
dnf group remove <group_name> <group_id>
# dnf group remove <group_name> <group_id>
Copy to Clipboard Copied!
Chapter 8. Handling package management history
With the dnf history
command, you can review the following information:
- Timeline of DNF transactions.
- Dates and times the transactions occurred.
- Number of packages affected by the transactions.
- Whether the transactions succeeded or were aborted.
- If the RPM database was changed between the transactions.
You can also use the dnf history
command to undo the transactions.
8.1. Listing DNF transactions
You can use the DNF software management tool to perform the following tasks:
- List the latest transactions.
- List the latest operations for a selected package.
- Display details of a particular transaction.
Procedure
Depending on your scenario, use one of the following options to display transaction information:
To display a list of all the latest DNF transactions, enter:
dnf history
# dnf history
Copy to Clipboard Copied! The output contains the following information:
-
The
Action(s)
column displays which type of action was performed during a transaction, for example, Install (I
), Upgrade (U
), Remove (E
), and other actions. The
Altered
column displays the number of actions performed during the transaction. The number of actions can also be followed by the result of the transaction.For more information about the values of the
Action(s)
andAltered
columns, see thednf(8)
man page.
-
The
To display a list of all the latest operations for a selected package, enter:
dnf history list <package_name>
# dnf history list <package_name>
Copy to Clipboard Copied! To display details of a particular transaction, enter:
dnf history info <transaction_id>
# dnf history info <transaction_id>
Copy to Clipboard Copied!
You can filter the results by appending global expressions as arguments. For more details, see Specifying global expressions in DNF input.
8.2. Reverting DNF transactions
Reverting a DNF transaction can be useful if you want to undo operations performed during the transaction. For example, if you installed several packages by using the dnf install
command, you can uninstall these packages at once by reverting an installation transaction.
You can revert DNF transactions the following ways:
-
Revert a single DNF transaction by using the
dnf history undo
command. -
Revert all DNF transactions performed between the specified transaction and the last transaction by using the
dnf history rollback
command.
8.2.1. Reverting a single DNF transaction
You can revert steps performed within a single transaction by using the dnf history undo
command:
-
If the transaction installed a new package,
dnf history undo
uninstalls the package. -
If the transaction uninstalled a package,
dnf history undo
reinstalls the package. The
dnf history undo
command also attempts to downgrade all updated packages to their previous versions if the older packages are still available.NoteIf an older package version is not available, the downgrade by using the
dnf history undo
command fails.
Procedure
Identify the ID of a transaction you want to revert:
dnf history
# dnf history ID | Command line | Date and time | Action(s) | Altered -------------------------------------------------------------------- 13 | install zip | 2022-11-03 10:49 | Install | 1 12 | install unzip | 2022-11-03 10:49 | Install | 1
Copy to Clipboard Copied! Optional: Verify that this is the transaction you want to revert by displaying its details:
dnf history info <transaction_id>
# dnf history info <transaction_id>
Copy to Clipboard Copied! Revert the transaction:
dnf history undo <transaction_id>
# dnf history undo <transaction_id>
Copy to Clipboard Copied! For example, if you want to uninstall the previously installed
unzip
package, enter:dnf history undo 12
# dnf history undo 12
Copy to Clipboard Copied!
8.2.2. Reverting multiple DNF transactions
You can revert all DNF transactions performed between a specified transaction and the last transaction by using the dnf history rollback
command. Note that the transaction specified by the transaction ID remains unchanged.
Procedure
Identify the transaction ID of the state you want to revert to:
dnf history
# dnf history ID | Command line | Date and time | Action(s) | Altered ------------------------------------------------------------------ 14 | install wget | 2022-11-03 10:49 | Install | 1 13 | install unzip | 2022-11-03 10:49 | Install | 1 12 | install vim-X11 | 2022-11-03 10:20 | Install | 171 EE
Copy to Clipboard Copied! Revert specified transactions:
dnf history rollback <transaction_id>
# dnf history rollback <transaction_id>
Copy to Clipboard Copied! For example, to revert to the state before the
wget
andunzip
packages were installed, enter:dnf history rollback 12
# dnf history rollback 12
Copy to Clipboard Copied! Alternatively, to revert all transactions in the transaction history, use the transaction ID 1:
dnf history rollback 1
# dnf history rollback 1
Copy to Clipboard Copied!
Chapter 9. Managing custom software repositories
You can configure a repository in the /etc/dnf/dnf.conf
file or in a .repo
file in the /etc/yum.repos.d/
directory.
Define your repositories in the .repo
file instead of /etc/dnf/dnf.conf
.
The /etc/dnf/dnf.conf
file contains the [main]
section and can contain one or more repository sections ([<repository-ID>]
) that you can use to set repository-specific options. The values you define in individual repository sections of the /etc/dnf/dnf.conf
file override values set in the [main]
section.
9.1. DNF repository options
The /etc/dnf/dnf.conf
configuration file contains repository sections with a unique repository ID in brackets ([]
). You can use such sections to define individual DNF repositories.
Repository IDs in []
must be unique.
For a complete list of available repository ID options, see the [<repository-ID>] OPTIONS
section of the dnf.conf(5)
man page.
9.2. Adding a DNF repository
You can add a DNF repository to your system by using the dnf config-manager --add-repo
command.
Procedure
Add a repository to your system:
dnf config-manager --add-repo <repository_URL>
# dnf config-manager --add-repo <repository_URL>
Copy to Clipboard Copied! Note that repositories added by this command are enabled by default.
Review and, optionally, update the repository settings that the previous command has created in the
/etc/yum.repos.d/<repository_URL>.repo
file:cat /etc/yum.repos.d/<repository_URL>.repo
# cat /etc/yum.repos.d/<repository_URL>.repo
Copy to Clipboard Copied!
Obtaining and installing software packages from unverified or untrusted sources other than Red Hat certificate-based Content Delivery Network
(CDN) is a potential security risk, and can lead to security, stability, compatibility, and maintainability issues.
9.3. Enabling a DNF repository
You can enable a DNF repository added to your system by using the dnf config-manager
command.
Procedure
Enable a repository:
dnf config-manager --enable <repository_id>
# dnf config-manager --enable <repository_id>
Copy to Clipboard Copied!
9.4. Disabling a DNF repository
You can disable a DNF repository added to your system by using the dnf config-manager
command.
Procedure
Disable a repository:
dnf config-manager --disable <repository_id>
# dnf config-manager --disable <repository_id>
Copy to Clipboard Copied!
Appendix A. DNF commands list
In the following sections, examine DNF commands for listing, installing, and removing content in Red Hat Enterprise Linux 10.
A.1. Commands for listing content in RHEL
The following are the commonly used DNF commands for finding content and its details in Red Hat Enterprise Linux 10:
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
The following are the commonly used DNF commands for installing content in Red Hat Enterprise Linux 10:
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 previously downloaded package from a local directory. |
| Install a remote package by using a package URL. |
| Install a package group by a group name. |
| Install a package group by the groupID. |
A.3. Commands for removing content in RHEL
The following are the commonly used DNF commands for removing content in Red Hat Enterprise Linux 10:
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 groupID. |