ONTAP 9 Manuals ( CA08871-402 )

Enable access to the repositories

You should enable access to repositories so ONTAP Mediator can access the required packages during the installation process

Steps
  1. Determine which repositories must be accessed, as shown in the following table:

    If your operating system is…​

    You must provide access to these repositories…​

    RHEL 7.x

    • rhel-7-server-optional-rpms

    RHEL 8.x

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

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

    RHEL 9.x

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

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

    CentOS 7.x

    • C7.6.1810 - Base repository

    Rocky Linux 8

    • appstream

    • baseos

    Rocky Linux 9

    • appstream

    • baseos

  2. Use one of the following procedures to enable access to the repositories listed above so ONTAP Mediator can access the required packages during the installation process.

Procedure for RHEL 7.x operating system

Use this procedure if your operating system is RHEL 7.x to enable access to repositories:

Steps
  1. Subscribe to the required repository:

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

    The following example shows the execution of this command:

    [root@localhost ~]# subscription-manager repos --enable rhel-7-server-optional-rpms
    Repository 'rhel-7-server-optional-rpms' is enabled for this system.
  2. Run the yum repolist command.

    The following example shows the execution of this command. The "rhel-7-server-optional-rpms" repository should appear in the list.

    [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 ~]#
Procedure for RHEL 8.x operating system

Use this procedure if your operating system is RHEL 8.x to enable access to repositories:

Steps
  1. Subscribe to the required repository:

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

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

    The following example shows the execution of this command:

    [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. Run the yum repolist command.

    The newly subscribed repositories should appear in the list.

Procedure for RHEL 9.x operating system

Use this procedure if your operating system is RHEL 9.x to enable access to repositories:

Steps
  1. Subscribe to the required repository:

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

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

    The following example shows the execution of this command:

    [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. Run the yum repolist command.

    The newly subscribed repositories should appear in the list.

Procedure for CentOS 7.x operating system

Use this procedure if your operating system is CentOS 7.x to enable access to repositories:

The following examples are showing a repository for CentOS 7.6 and might not work for other CentOS versions. Use the base repository for your version of CentOS.
Steps
  1. Add the C7.6.1810 - Base repository. The C7.6.1810 - Base vault repository contains the "kernel-devel" package needed for ONTAP Mediator.

  2. Add the following lines to /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. Run the yum repolist command.

    The following example shows the execution of this command. The CentOS-7.6.1810 - Base repository should appear in the list.

    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 ~]#
Procedure for Rocky Linux 8 or 9 operating systems

Use this procedure if your operating system is Rocky Linux 8 or Rocky Linux 9 to enable access to repositories:

Steps
  1. Subscribe to the required repositories:

    dnf config-manager --set-enabled baseos

    dnf config-manager --set-enabled appstream

  2. Perform a clean operation:

    dnf clean all

  3. Verify the list of repositories:

    dnf repolist

Example for Rocky Linux 8
[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 ~]#
Example for Rocky Linux 9
[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 ~]#
Top of Page