Creating a Local Repository on RHEL, CentOS, or Oracle Linux
This section describes how to create and use a local repository.
Procedure
-
Log in as
rooton the node or usesudo. -
Create the following directory if it does not exist:
/var/www/html/yum/base -
On a computer that is connected to the internet, download the following files, substituting the appropriateNOTESee Using the HPE Data Fabric Token-Authenticated Internet Repository before connecting to the Data Fabric repository.
<version>number and<datestamp>: (See Data Fabric Repositories and Packages for the correct paths for all past releases.)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 -
Copy the files to
/var/www/html/yum/baseon the node, and extract them there.tar -xvzf mapr-v<version>GA.rpm.tgz tar -xvzf mapr-mep-<version>-<datestamp>.rpm.tgz -
Create the base repository headers:
When finished, verify the content of the new
/var/www/html/yum/base/repodatadirectory:filelists.xml.gz, other.xml.gz, primary.xml.gz, repomd.xmlcreaterepo /var/www/html/yum/base