Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products

RHEL: Steps to create YUM local repository on RHEL 8 by using the OS iso file mounted through IDRAC Virtual Media

Summary: Refer the below steps to create and configure a local YUM repository from RHEL ISO image mounted through IDRAC Virtual Media on RHEL 8 OS environment.

This article applies to This article does not apply to This article is not tied to any specific product. Not all product versions are identified in this article.

Instructions

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>]
racadm remoteimage

Create a directory to mount the OS iso image on this directory:
# mkdir /root/DVD
# mount /dev/sr0 /root/DVD/
# lsblk
mkdir and mount

lsblk

Create a local repo file (local.repo) in the /etc/yum.repos.d directory:

Create a local repo file

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

[InstallMedia-BaseOS]

ll total
# yum clean all #yum repolist all 
# yum install <package-name>
#yum clean all

#yum install <package-name>

dnf install

 
 

Affected Products

Red Hat Enterprise Linux Version 9, Red Hat Enterprise Linux Version 8
Article Properties
Article Number: 000208302
Article Type: How To
Last Modified: 23 Sep 2024
Version:  4
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.