5.2.1. Getting Started Setting Up a Local Repository

To get started setting up your local repository, complete the following prerequisites:

  • Select a mirror server that runs a supported operating system

  • Enable network access from all hosts in your cluster to the mirror server

  • Ensure the mirror server has a package manager installed such as yum (RHEL / CentOS / Oracle Linux) or zypper (SLES)

  • Optional: If your repository has temporary Internet access, and you are using RHEL/CentOS/Oracle Linux as your OS, install yum utilities:

    yum install yum-utils createrepo
  1. Create an HTTP server.

    1. On the mirror server, install an HTTP server (such as Apache httpd) using the instructions provided here.

    2. Activate this web server.

    3. Ensure that the firewall settings (if any) allow inbound HTTP access from your cluster nodes to your mirror server.

      [Note]Note

      If you are using Amazon EC2, make sure that SELinux is disabled.

  2. On your mirror server, create a directory for your web server.

    • For example, from a shell window, type:

      • For RHEL/CentOS/Oracle Linux:

        mkdir -p /var/www/html/
      • For SLES:

        mkdir -p /srv/www/htdocs/rpms
    • If you are using a symlink, enable the followsymlinks on your web server.

      [Note]Note

      After you have completed the steps in Getting Started Setting up a Local Repository, move on to specific setup for your repository internet access type.


loading table of contents...