Getting Started Setting Up a Local Repository
Before setting up your local repository, complete the following:
Prerequisites
Select an existing server in, or accessible to the cluster, 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), zypper (SLES), or apt-get (Debian/Ubuntu).
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
To begin setting up your local repository:
Steps
Create an HTTP server.
On the mirror server, install an HTTP server (such as Apache httpd) using the instructions provided on the Apache community website.
Activate this web server.
Ensure that any firewall settings allow inbound HTTP access from your cluster nodes to your mirror server.
Note If you are using Amazon EC2, make sure that SELinux is disabled.
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
- For Debian/Ubuntu:
mkdir -p /var/www/html/
If you are using a symlink, enable the
followsymlinks
on your web server.
Next Steps
After you have completed the steps in this section, move on to specific set up for your repository internet access type.
More Information