Menu Close

Chapter 5. Installing RHEL 9 content

The following sections describe how to install content in Red Hat Enterprise Linux 9:

5.1. Installing packages

The following procedure describes how to install packages using dnf.

Procedure

  • Install the package:

    # dnf install package-name

    Replace package-name with the name of the package.

  • To install multiple packages and their dependencies simultaneously, use:

    # dnf install package-name-1 package-name-2

    Replace package-name-1 and package-name-2 with the names of the packages.

  • When installing packages on a multilib system (AMD64, Intel 64 machine), you can specify the architecture of the package by appending it to the package name:

    # dnf install package-name.arch

    Replace package-name.arch with the name and architecture of the package.

  • If you know the name of the binary you want to install, but not the package name, you can use the path to the binary as an argument:

    # dnf install /usr/sbin/binary-file

    Replace /usr/sbin/binary-file with a path to the binary file.

    dnf searches through the package lists, finds the package which provides /usr/sbin/binary-file, and prompts you as to whether you want to install it.

  • To install a previously-downloaded package from a local directory, use:

    # dnf install /path/

    Replace /path/ with the path to the package.

5.2. Installing package groups

The following procedure describes how to install a package group by a group name or by a groupID using dnf.

Procedure

  • To install a package group by a group name, use:

    # dnf group install group-name

    Replace group-name with the full name of the group or environmental group.

  • To install a package group by a groupID, use:

    # dnf group install groupID

    Replace groupID with the ID of the group.

5.3. Running installed content

New commands are usually enabled after you install content from RHEL 9 repositories. If the commands originated from an RPM package or RPM packages were enabled by a module, the experience of using the command should be no different.

Procedure

  • To run the new commands use them directly:

    $ command

5.4. Additional resources