Mount RHEL OS iso file through IDRAC virtual media in the WebGUI or use the below RACADM CLI command to mount the remote OS iso image.
See RACADM CLI command guide to configure media file in a remote server (Page 111)
Integrated Dell Remote Access Controller 9 RACADM CLI Guide.
# racadm remoteimage -c [-u <username> -p <password> -l <image_path>]
Create a directory to mount the OS iso image on this directory:
# mkdir /root/DVD
# mount /dev/sr0 /root/DVD/
# lsblk
Create a local repo file (
local.repo) in the
/etc/yum.repos.d directory:
Add the below parameters on the local.repo file to configure the local YUM repository from the mounted OS iso image:
# vi local.repo
[InstallMedia-BaseOS]
name=Red Hat Enterprise Linux 8 - BaseOS
baseurl=file:///root/DVD/BaseOS
gpgcheck=0
enabled=1
[InstallMedia-AppStream]
name=Red Hat Enterprise Linux 8 - AppStream
baseurl=file:///root/DVD/AppStream
gpgcheck=0
enabled=1
# yum clean all #yum repolist all
# yum install <package-name>