Creating a Local Repository on Ubuntu

Describes how to create and use a local repository for Ubuntu.

  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.
  3. Change to the directory /root, and create the following directories within it:
    ~/mapr
    |---dists
    |------binary
    |---------optional
    |------------binary-amd64
    |---mapr
  4. On a computer that is connected to the internet, download the following files, substituting the appropriate <version> and <datestamp>:
    https://package.ezmeral.hpe.com/releases/v7.x.x/ubuntu/mapr-<version>GA.deb.tgz
    https://package.ezmeral.hpe.com/releases/MEP/MEP-<version>/ubuntu/mapr-mep-<version>-<datestamp>.deb.tgz
  5. Copy the files to /root/mapr/mapr on the node, and extract them there:
    tar -xvzf mapr-<version>GA.deb.tgz
    tar -xvzf mapr-mep-<version>-<datestamp>.deb.tgz
  6. Navigate to the /root/mapr directory.
  7. Use dpkg-scanpackages to create Packages.gz in the binary-amd64 directory:
    dpkg-scanpackages . /dev/null | gzip -9c > ./dists/binary/optional/binary-amd64/Packages.gz
  8. Move the entire /root/mapr/mapr directory to the default directory served by the HTTP server (for example, /var/www), and make sure the HTTP server is running.