Skip to main content
ONTAP Mediator
本繁體中文版使用機器翻譯,譯文僅供參考,若與英文版本牴觸,應以英文版本為準。

為 ONTAP Mediator 安裝提供儲存庫存取

貢獻者 netapp-camdenc netapp-aoife

您應該啟用對儲存庫的存取,以便 ONTAP Mediator 在安裝過程中可以存取所需的套件。

步驟
  1. 確定需要存取哪些儲存庫,如下表所示:

    如果您的作業系統是……

    您必須提供對這些儲存庫的存取……

    Oracle Linux 10.x

    • ol-10-for-x86_64-baseos-rpms

    • ol-10-for-x86_64-appstream-rpms

    Oracle Linux 9.x

    • ol-9-for-x86_64-baseos-rpms

    • ol-9-for-x86_64-appstream-rpms

    RHEL 10.x

    • rhel-10-for-x86_64-baseos-rpms

    • rhel-10-for-x86_64-appstream-rpms

    RHEL 9.x

    • rhel-9-for-x86_64-baseos-rpms

    • rhel-9-for-x86_64-appstream-rpms

    RHEL 8.x

    • rhel-8-for-x86_64-baseos-rpms

    • rhel-8-for-x86_64-appstream-rpms

    RHEL 7.x

    • rhel-7-server-optional-rpms

    CentOS 7.x

    • C7.6.1810 - 基礎儲存庫

    Rocky Linux 10

    • appstream

    • baseos

    Rocky Linux 9

    • appstream

    • baseos

    Rocky Linux 8

    • appstream

    • baseos

  2. 使用下列其中一項程序來啟用上述儲存庫的存取,以便 ONTAP Mediator 在安裝過程中可以存取所需的套件。

    註 如果 ONTAP Mediator 依賴「extras」和「optional」儲存庫中的 Python 模組,則可能需要存取 `rhel-X-for-x86_64-extras-rpms`和 `rhel-X-for-x86_64-optional-rpms`檔案。
    Oracle Linux 10.x 作業系統的程序

    如果您的作業系統是 Oracle Linux 10.x,請使用此程序來啟用對儲存庫的存取:

    步驟
    1. 訂閱所需的儲存庫:

      subscription-manager repos --enable ol-10-for-x86_64-baseos-rpms
      subscription-manager repos --enable ol-10-for-x86_64-appstream-rpms

      以下範例顯示此命令的執行:

      [root@localhost ~]# subscription-manager repos --enable ol-10-for-x86_64-baseos-rpms
      Repository 'ol-10-for-x86_64-baseos-rpms' is enabled for this system.
      [root@localhost ~]# subscription-manager repos --enable ol-10-for-x86_64-appstream-rpms
      Repository 'ol-10-for-x86_64-appstream-rpms' is enabled for this system.
    2. 執行以下命令列出已啟用的儲存庫:

      yum repolist

      新訂閱的儲存庫應該會出現在清單中。

    Oracle Linux 9.x 作業系統的程序

    如果您的作業系統是 Oracle Linux 9.x,請使用此程序來啟用對儲存庫的存取:

    步驟
    1. 訂閱所需的儲存庫:

      subscription-manager repos --enable ol-9-for-x86_64-baseos-rpms
      subscription-manager repos --enable ol-9-for-x86_64-appstream-rpms

      以下範例顯示此命令的執行:

      [root@localhost ~]# subscription-manager repos --enable ol-9-for-x86_64-baseos-rpms
      Repository 'ol-9-for-x86_64-baseos-rpms' is enabled for this system.
      [root@localhost ~]# subscription-manager repos --enable ol-9-for-x86_64-appstream-rpms
      Repository 'ol-9-for-x86_64-appstream-rpms' is enabled for this system.
    2. 執行以下命令列出已啟用的儲存庫:

    yum repolist

    新訂閱的儲存庫應該會出現在清單中。

    RHEL 10.x 作業系統的操作步驟

    如果您的作業系統是 RHEL 10.x,請使用此程序來啟用儲存庫的存取:

    步驟
    1. 訂閱所需的儲存庫:

      subscription-manager repos --enable rhel-10-for-x86_64-baseos-rpms
      subscription-manager repos --enable rhel-10-for-x86_64-appstream-rpms

      以下範例顯示此命令的執行:

      [root@localhost ~]# subscription-manager repos --enable rhel-10-for-x86_64-baseos-rpms
      Repository 'rhel-10-for-x86_64-baseos-rpms' is enabled for this system.
      [root@localhost ~]# subscription-manager repos --enable rhel-10-for-x86_64-appstream-rpms
      Repository 'rhel-10-for-x86_64-appstream-rpms' is enabled for this system.
    2. 執行以下命令列出已啟用的儲存庫:

    yum repolist

    新訂閱的儲存庫應該會出現在清單中。

    RHEL 9.x 作業系統的操作步驟

    如果您的作業系統是 RHEL 9.x,請使用此程序來啟用儲存庫的存取:

    步驟
    1. 訂閱所需的儲存庫:

      subscription-manager repos --enable rhel-9-for-x86_64-baseos-rpms
      subscription-manager repos --enable rhel-9-for-x86_64-appstream-rpms

      以下範例顯示此命令的執行:

      [root@localhost ~]# subscription-manager repos --enable rhel-9-for-x86_64-baseos-rpms
      Repository 'rhel-9-for-x86_64-baseos-rpms' is enabled for this system.
      [root@localhost ~]# subscription-manager repos --enable rhel-9-for-x86_64-appstream-rpms
      Repository 'rhel-9-for-x86_64-appstream-rpms' is enabled for this system.
    2. 執行以下命令列出已啟用的儲存庫:

    yum repolist

    新訂閱的儲存庫應該會出現在清單中。

    RHEL 8.x 作業系統的操作步驟

    如果您的作業系統是 RHEL 8.x,請使用此程序啟用儲存庫的存取:

    步驟
    1. 訂閱所需的儲存庫:

      subscription-manager repos --enable rhel-8-for-x86_64-baseos-rpms
      subscription-manager repos --enable rhel-8-for-x86_64-appstream-rpms

      以下範例顯示此命令的執行:

      [root@localhost ~]# subscription-manager repos --enable rhel-8-for-x86_64-baseos-rpms
      Repository 'rhel-8-for-x86_64-baseos-rpms' is enabled for this system.
      [root@localhost ~]# subscription-manager repos --enable rhel-8-for-x86_64-appstream-rpms
      Repository 'rhel-8-for-x86_64-appstream-rpms' is enabled for this system.
    2. 執行以下命令列出已啟用的儲存庫:

    yum repolist

    新訂閱的儲存庫應該會出現在清單中。

    RHEL 7.x 作業系統的操作步驟

    如果您的作業系統是 RHEL 7.x,請使用此程序來啟用儲存庫的存取:

    步驟
    1. 訂閱所需的儲存庫:

      subscription-manager repos --enable rhel-7-server-optional-rpms

      以下範例顯示此命令的執行:

      [root@localhost ~]# subscription-manager repos --enable rhel-7-server-optional-rpms
      Repository 'rhel-7-server-optional-rpms' is enabled for this system.
    2. 執行以下命令列出已啟用的儲存庫:

    yum repolist

    以下範例顯示此命令的執行。"rhel-7-server-optional-rpms" 儲存庫應出現在清單中。

    [root@localhost ~]# yum repolist
    Loaded plugins: product-id, search-disabled-repos, subscription-manager
    rhel-7-server-optional-rpms | 3.2 kB  00:00:00
    rhel-7-server-rpms | 3.5 kB  00:00:00
    (1/3): rhel-7-server-optional-rpms/7Server/x86_64/group              |  26 kB  00:00:00
    (2/3): rhel-7-server-optional-rpms/7Server/x86_64/updateinfo         | 2.5 MB  00:00:00
    (3/3): rhel-7-server-optional-rpms/7Server/x86_64/primary_db         | 8.3 MB  00:00:01
    repo id                                      repo name                                             status
    rhel-7-server-optional-rpms/7Server/x86_64   Red Hat Enterprise Linux 7 Server - Optional (RPMs)   19,447
    rhel-7-server-rpms/7Server/x86_64            Red Hat Enterprise Linux 7 Server (RPMs)              26,758
    repolist: 46,205
    [root@localhost ~]#
    CentOS 7.x 作業系統的操作步驟

    如果您的作業系統是 CentOS 7.x,請使用此程序來啟用儲存庫的存取:

    註 以下範例顯示的是 CentOS 7.6 的儲存庫,可能不適用於其他 CentOS 版本。請使用適用於您 CentOS 版本的基礎儲存庫。
    步驟
    1. 新增 C7.6.1810 - Base 儲存庫。C7.6.1810 - Base 保存庫儲存庫包含 ONTAP Mediator 所需的「kernel-devel」套件。

    2. 將以下行新增至 /etc/yum.repos.d/CentOS-Vault.repo。

      [C7.6.1810-base]
      name=CentOS-7.6.1810 - Base
      baseurl=http://vault.centos.org/7.6.1810/os/$basearch/
      gpgcheck=1
      gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-7
      enabled=1
    3. 執行以下命令列出已啟用的儲存庫:

    yum repolist

    以下範例顯示此命令的執行。CentOS-7.6.1810 - Base 儲存庫應該會出現在清單中。

    Loaded plugins: fastestmirror
    Loading mirror speeds from cached hostfile
     * base: distro.ibiblio.org
     * extras: distro.ibiblio.org
     * updates: ewr.edge.kernel.org
    C7.6.1810-base                                 | 3.6 kB  00:00:00
    (1/2): C7.6.1810-base/x86_64/group_gz          | 166 kB  00:00:00
    (2/2): C7.6.1810-base/x86_64/primary_db        | 6.0 MB  00:00:04
    repo id                      repo name               status
    C7.6.1810-base/x86_64        CentOS-7.6.1810 - Base  10,019
    base/7/x86_64                CentOS-7 - Base         10,097
    extras/7/x86_64              CentOS-7 - Extras       307
    updates/7/x86_64             CentOS-7 - Updates      1,010
    repolist: 21,433
    [root@localhost ~]#
    Rocky Linux 10、9 或 8 作業系統的操作步驟

    如果您的作業系統是 Rocky Linux 10、Rocky Linux 9 或 Rocky Linux 8,請使用此程序來啟用儲存庫的存取:

    步驟
    1. 訂閱所需的儲存庫:

      dnf config-manager --set-enabled baseos
      dnf config-manager --set-enabled appstream
    2. 執行 `clean`操作:

      dnf clean all
    3. 請核對儲存庫清單:

      dnf repolist
    [root@localhost ~]# dnf config-manager --set-enabled baseos
    [root@localhost ~]# dnf config-manager --set-enabled appstream
    [root@localhost ~]# dnf clean all
    [root@localhost ~]# dnf repolist
    repo id                        repo name
    appstream                      Rocky Linux 10 - AppStream
    baseos                         Rocky Linux 10 - BaseOS
    [root@localhost ~]#
    [root@localhost ~]# dnf config-manager --set-enabled baseos
    [root@localhost ~]# dnf config-manager --set-enabled appstream
    [root@localhost ~]# dnf clean all
    [root@localhost ~]# dnf repolist
    repo id                        repo name
    appstream                      Rocky Linux 9 - AppStream
    baseos                         Rocky Linux 9 - BaseOS
    [root@localhost ~]#
    [root@localhost ~]# dnf config-manager --set-enabled baseos
    [root@localhost ~]# dnf config-manager --set-enabled appstream
    [root@localhost ~]# dnf clean all
    [root@localhost ~]# dnf repolist
    repo id                        repo name
    appstream                      Rocky Linux 8 - AppStream
    baseos                         Rocky Linux 8 - BaseOS
    [root@localhost ~]#
接下來是什麼?

"下載 ONTAP Mediator 安裝套件"