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 command output 

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

Create a local repo file using vim 

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 list output of yum.repos folder 

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

#yum clean all

#yum install <package-name>

output from dnf install ftp 

 

 

Affected Products

Red Hat Enterprise Linux Version 9, Red Hat Enterprise Linux Version 8

Products

PowerEdge FC640, PowerEdge M640, PowerEdge M640 (for PE VRTX), PowerEdge MX740C, PowerEdge MX750c, PowerEdge MX760c, PowerEdge MX840C, PowerEdge R240, PowerEdge R250, PowerEdge R260, PowerEdge R340, PowerEdge R350, PowerEdge R360, PowerEdge R440 , PowerEdge R450, PowerEdge R540, PowerEdge R550, PowerEdge R640, PowerEdge R6415, PowerEdge R650, PowerEdge R650xs, PowerEdge R6515, PowerEdge R6525, PowerEdge R660, PowerEdge R660xs, PowerEdge R6615, PowerEdge R6625, PowerEdge R740, PowerEdge R740XD, PowerEdge R740XD2, PowerEdge R7415, PowerEdge R7425, PowerEdge R750, PowerEdge R750XA, PowerEdge R750xs, PowerEdge R7515, PowerEdge R7525, PowerEdge R760, PowerEdge R760XA, PowerEdge R760xd2, PowerEdge R760xs, PowerEdge R7615, PowerEdge R7625, PowerEdge R840, PowerEdge R860, PowerEdge R940, PowerEdge R940xa, PowerEdge R960, PowerEdge T140, PowerEdge T150, PowerEdge T160, PowerEdge T340, PowerEdge T350, PowerEdge T360, PowerEdge T440, PowerEdge T550, PowerEdge T560, PowerEdge T640, PowerEdge XE2420, PowerEdge XE7100, PowerEdge XE7420, PowerEdge XE7440, PowerEdge XE8545, PowerEdge XE8640, PowerEdge XE9640, PowerEdge XE9680 ...
Article Properties
Article Number: 000208302
Article Type: How To
Last Modified: 09 Dec 2024
Version:  5
Find answers to your questions from other Dell users
Support Services
Check if your device is covered by Support Services.