Creating a Local Repository on RHEL, Rocky, or Oracle Linux

Describes how to create and use a local repository for RHEL, Rocky, or Oracle Linux.

  1. Ensure that you have access to the HPE internet repository so that you can download package files. For more information, see Accessing the HPE Ezmeral Token-Authenticated Internet Repository.
  2. On the machine where you will set up the repository, log in as root or use sudo.
  3. Create the following directory if it does not exist: /var/www/html/yum/base
  4. On a computer that is connected to the internet, download the following files, substituting the appropriate <version> number and <datestamp>:
    https://package.ezmeral.hpe.com/releases/v7.x.x/redhat/mapr-<version>GA.rpm.tgz
    https://package.ezmeral.hpe.com/releases/MEP/MEP-<version>/redhat/mapr-mep-<version>-<datestamp>.rpm.tgz
  5. Copy the files to /var/www/html/yum/base on the node, and extract them there:
    tar -xvzf mapr-v<version>GA.rpm.tgz
    tar -xvzf mapr-mep-v<version>.<datestamp>.rpm.tgz
  6. Create the base repository headers by using the following command:
    createrepo /var/www/html/yum/base
    HPE software assumes that the web server root directory is: /var/www/html.
  7. When finished, verify the content of the new /var/www/html/yum/base/repodata directory:
    filelists.xml.gz, other.xml.gz, primary.xml.gz, repomd.xml