第 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. During the package installation, DNF automatically resolves and installs package dependencies.
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> ...If you install packages on a system that supports multiple architectures, such as
i686andx86_64, you can specify the architecture of the package by appending it to the package name:# dnf install <package_name>.<architecture>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>To install a local RPM file, enter:
# dnf install <path_to_RPM_file>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.