Chapter 5. Installing RHEL 8 content In the following sections, learn how to install content in Red Hat Enterprise Linux 8 by using YUM . 5.1. Installing packages If a software is not part of the default installation, you can manually install it. YUM automatically resolves and installs dependencies. Prerequisites Optional: You know the name of the package you want to install . If the package you want to install is provided by a module stream, the respective module stream is enabled. For more information, see Enabling a module stream . Note If the package is provided by a module stream marked as default, yum automatically enables that module stream before installing this package. Procedure Use one of the following methods to install packages: To install packages from the repositories, enter: If you install packages on a system that supports multiple architectures, such as AMD64 and Intel 64, you can specify the architecture of the package by appending it to the package name: 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: To install a local RPM file, enter: If the package has dependencies, specify the paths to these RPM files as well. Otherwise, YUM downloads the dependencies from the repositories or fails if they are not available in the repositories. Additional resources Installing modular content 5.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. Procedure Use one of the following methods to install a package group: To install a package group by a group name, enter one of the following commands:: To install a package group by the groupID, enter: 5.3. Enabling a module stream If the package you want to install is provided by a module stream, you must enable the respective module stream. Note If the package is provided by a module stream marked as default, yum automatically enables that module stream before installing this package. Important It is recommended to always select a specific module stream for installation. Always consider each stream's life cycle . Note that certain default module streams reach the End of Life status prior to the end of the RHEL major release. Procedure Enable the module stream: Note If another stream of the module was previously active because it was default, it becomes inactive. Additional resources Module streams Red Hat Enterprise Linux Application Streams Life Cycle 5.4. Installing modular content For certain software, Red Hat provides modules. You can use modules to install a specific version (stream) and set of packages (profiles). Important Always consider the module stream's life cycle . Prerequisites You do not have any packages installed from another stream of the same module. Procedure List modules that provide the package you want to install: For example, to list modules that provide the postgresql-server package, enter: The output shows that the postgresql module is available with streams 9.6 , 10 , 12 , 13 , and 15 . The default stream is 10 ( [d] ). Install a selected module stream: If a default profile for a stream is defined, you can omit /<profile> in the command to install this default profile of the stream. For example, to install the default profile ( server ) for stream 13 of the postgresql module, enter: Verification Verify that the correct module stream is enabled ( [e] ) and the required profile was installed ( [i] ): Additional resources Introduction to modules Red Hat Enterprise Linux Application Streams Life Cycle 5.5. Specifying package details for installation You can specify package details for a precise package installation process. To do so, append the following suffixes to the yum install command to explicitly define how to parse an argument: Use -n to specify the exact name of the package. Use -na to specify the exact package name and architecture. Use -nevra to specify the exact package name, epoch, version, release, and architecture. Procedure Depending on your scenario, use one of the following options to optimize the package installation process: To install a package by using its exact name, enter: To install a package by using its exact name and architecture, enter: To install a package by using its exact name, epoch, version, release, and architecture, enter: 5.6. Additional resources Commands for installing content in RHEL 8 yum(8) man page on your system

Commands:
yum install <package_name_1> <package_name_2>
yum install <package_name> . <architecture>
yum install <path_to_file>
yum install <path_to_RPM_file>
yum group install <group_name> yum install @ <group_name>
yum group install <group_ID>
yum module enable <module_name> : <stream>
yum module list <module_name>
yum module list postgresql Name Stream Profiles Summary postgresql 9.6 client, server [d] PostgreSQL server and client module postgresql 10 [d] client, server [d] PostgreSQL server and client module postgresql 12 client, server [d] PostgreSQL server and client module postgresql 13 client, server [d] PostgreSQL server and client module postgresql 15 client, server [d] PostgreSQL server and client module Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled
yum module install <module-name> : <stream> / <profile>
yum module install postgresql:13 Dependencies resolved. =================================================================================================================== Package Architecture Version Repository Size =================================================================================================================== Installing group/module packages: postgresql-server x86_64 13.10-1.module+el8.7.0+18279+1ca8cf12 rhel-AppStream 5.6 M Installing dependencies: libicu x86_64 60.3-2.el8_1 rhel 8.8 M libpq x86_64 13.5-1.el8 rhel-AppStream 198 k postgresql x86_64 13.10-1.module+el8.7.0+18279+1ca8cf12 rhel-AppStream 1.5 M Installing module profiles: postgresql/server Enabling module streams: postgresql 13
yum module list postgresql Name Stream Profiles Summary postgresql 9.6 client, server [d] PostgreSQL server and client module postgresql 10 [d] client, server [d] PostgreSQL server and client module postgresql 12 client, server [d] PostgreSQL server and client module postgresql 13 [e] client, server [d] [i] PostgreSQL server and client module postgresql 15 client, server [d] PostgreSQL server and client module postgresql 16 client, server [d] PostgreSQL server and client module Hint: [d]efault, [e]nabled, [x]disabled, [i]nstalled
yum install-n <package_name>
yum install-na <package_name>.<architecture>
yum install-nevra <package_name>-<epoch>:<version>-<release>.<architecture>