1. Mount Media

1

Mount the RHEL Installation Media

Attach or mount the ISO to the system.

2

Create a mount point

Run the following command to create a mount point:

a) mkdir -p /mnt/rhel_iso
Mounting Point

Creating Mount Point

3

Mount the device

Run the following command to mount the device:

a) mount /dev/sr0 /mnt/rhel_iso
Mounting Media Screenshot

Mounting the ISO

2. Local Repository

4

Create the Local Repository Configuration

Run the following commands to create the repository configuration file and paste the following configuration:

a) cd /etc/yum.repos.d/
b) vi local_rhel.repo

Paste the following configuration:

[local-BaseOS] name=RHEL Local BaseOS baseurl=file:///mnt/rhel_iso/BaseOS enabled=1 gpgcheck=0 [local-AppStream] name=RHEL Local AppStream baseurl=file:///mnt/rhel_iso/AppStream enabled=1 gpgcheck=0
Repo Config Screenshot

Repository Configuration File

3. Install nss-tools

5

Verify and Clean Cache

Run the following commands to verify the repository and clean the cache

a) dnf clean all
b) dnf repolist
nss-tools installation output

Installation Terminal Output

6

Install Package

Run the following command to install the nss-tools package

a) dnf install nss-tools -y
nss-tools installation output

Installation Terminal Output