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 作業系統環境中透過 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 作業系統 iso 檔案,或使用下方的 RACADM CLI 命令掛接遠端作業系統 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 安裝 <套件名稱>

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.