Categories

ID #1213

How do I set up a local Bright repository?

How do I set up a local Bright repository?


1. Copy the Bright yum repo file, /etc/yum.repos.d/cm.repo and the GPG keys under /etc/pki/rpm-gpg, from the head node to the server where you're going to create the local mirror.
2. Get the repository ID:

 (on the mirror server)

 # yum clean all
# yum repo list
[...]
cm-rhel6-7.0 Cluster Manager 7.0 for Red Hat Enterprise Linux 6 301+8
cm-rhel6-7.0-updates Cluster Manager 7.0 for Red Hat Enterprise Linux 6 - Updates 371
[...]

3. Sync the repository locally:

# mkdir -p /path/to/local/yum/repo/cm-rhel6-7.0

# cd /path/to/local/yum/repo/cm-rhel6-7.0

# rpm --import </path/to/gpg-key>
# reposync --gpgcheck -l --repoid=cm-rhel6-7.0 -n
# createrepo -v /path/to/local/yum/repo/cm-rhel6-7.0

# mkdir -p /path/to/local/yum/repo/cm-rhel6-7.0-updates
# reposync --gpgcheck -l --repoid=cm-rhel6-7.0 -n
# createrepo -v /path/to/local/yum/repo/cm-rhel6-7.0-updates

4. You may need to create local repositories for ceph-* and epel as well since some Bright packages may have some dependencies which are provided by these repositories.

Tags: -

Related entries:

You cannot comment on this entry