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

使用通过 IDRAC 虚拟介质装载的操作系统 ISO 文件在 RHEL 8 上创建 YUM 本地存储库的步骤

Summary: 请参阅以下步骤,在 RHEL 8 OS 环境中,通过 IDRAC 虚拟介质装载的操作系统 iso 映像创建和配置本地 YUM 存储库

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

通过 GUI 中的 IDRAC 虚拟介质装载 RHEL OS iso 文件,或使用下面的 RACADM CLI 命令装载远程 OS ISO 映像。

可参阅 RACADM CLI 命令指南,以在远程服务器中配置介质文件
(第 111 页) Integrated Dell Remote Access Controller 9 RACADM CLI 指南 
#racadm remoteimage -c [-u <username> -p <password> -l <image_path>]
RACADM RemoteImage

创建一个目录以在此目录上装载操作系统 ISO 映像
#mkdir /root/DVD
#mount /dev/sr0 /root/DVD/
#lsblk
mkdir 和装载

LSBLK

在 /etc/yum.repos.d 目录


创建本地存储库文件
下创建本地存储库文件 (local.repo)在 local.repo 文件上添加以下参数,以从已装载的操作系统 ISO 映像配置本地 YUM 存储库
#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 总计
#yum clean all
#yum repolist all
#yum install <package-name>
#yum 全部清理

#yum 安装 <package-name>

DNF 安装

 
 

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.