Creating a Local Repository on SUSE

This section describes how to create and use a local repository.

Procedure

  1. Login as root on the node or use sudo.
  2. Create the following directory if it does not exist: /var/www/html/zypper/base
  3. On a computer that is connected to the Internet, download the following files, substituting the appropriate <version> and <datestamp>: (See MapR Repositories and Packages for the correct paths for all past releases.)
    https://package.ezmeral.hpe.com/releases/v<version>/suse/mapr-<version>GA.rpm.tgz
    https://package.ezmeral.hpe.com/releases/MEP/MEP-<version>/suse/mapr-mep-<version>-<datestamp>.rpm.tgz
  4. Copy the files to /var/www/html/zypper/base on the node, and extract them there.
    tar -xvzf mapr-<version>GA.rpm.tgz
    tar -xvzf mapr-mep-<version>-<datestamp>.rpm.tgz
  5. Create the base repository headers: When finished, verify the content of the new /var/www/html/zypper/base/repodata directory: filelists.xml.gz, other.xml.gz, primary.xml.gz, repomd.xml
    createrepo /var/www/html/zypper/base