Table of contents

Set up repositories for installing Watson Studio Local

To install packages on Red Hat Enterprise Linux, you must have either an offline repository/Active Repository (RHEL Subscription or Internal Repository). Otherwise, Watson Studio Local might fail while it is installing packages.

Red Hat Enterprise Linux

You can get RHEL packages using either of two methods: an offline repository (such as the RHEL ISO file), or by subscribing the systems to Red Hat Repositories/Enabling internal repositories.

Method 1: Red Hat Subscription Manager
If possible, you can obtain packages through the Red Hat subscription. This subscription enables repositories linked to Red Hat.

If you have internal repos that can be utilized as well, consult your I.T. team to get the systems subscribed to these repos.

Method 2: Offline Repository
The following method mounts the Red Hat ISO and uses its built-in repository:
  1. Create a directory in the /mnt directory, for example, /mnt/iso.
  2. Copy the applicable ISO file to the system (retain the absolute path to the ISO file).
  3. Enter the following command to mount the ISO file and access its contents:
    mount -t iso9660 -o loop /{LOCATION_OF_ISO}
    where LOCATION_OF_ISO is the absolute path to the ISO file and DIRECTORY_NAME is the absolute path to the directory made in /mnt.
  4. Create a file in /etc/yum.repos.d with the .repo extension, for example, rhel_iso.repo with the following contents:
    name = RHEL_Repo
    baseurl = file:///mnt/{DIRECTORY_NAME}/
    gpgcheck = 0
    where RHEL_Repo is the name of the file and DIRECTORY_NAME is the absolute path to the directory made in /mnt.
  5. As a test, try the following command:
    yum list | grep haproxy
    The result should show something like:
    1.5.18-6.el7               RHEL_Repo
    If no result appears, this means an issue occurred with the set up of the offline repository.
RHEL RPM package requirements
For a RHEL installation, you must enable the Red Hat extras repo, for example, - subscription-manager repos --enable rhel-7-server-extras-rpms because Watson Studio Local and glusterfs-server require RPM packages from it.

RHEL 7.3 requirement: Install the following package: "libselinux-python" before you install Watson Studio Local.