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)
# dnf clean all
# dnf repo list
[...]
cm-ml-rhel9-9.2-updates Cluster Manager 9.2 Machine Learning for Red Hat Enterprise Linux 9 - Updates
cm-rhel9-9.2-updates Cluster Manager 9.2 for Red Hat Enterprise Linux 9 - Updates
[...]
3. Sync the repository locally:
# mkdir -p /path/to/local/yum/repo/cm-rhel9-9.2-updates
# cd /path/to/local/yum/repo/cm-rhel9-9.2-updates
# rpm --import </path/to/gpg-key>
# reposync --gpgcheck --repoid=cm-rhel9-9.2-updates -n
# createrepo -v /path/to/local/yum/repo/cm-rhel9-9.2-updates
# mkdir -p /path/to/local/yum/repo/cm-ml-rhel9-9.2-updates
# reposync --gpgcheck --repoid=cm-ml-rhel9-9.2-updates -n
# createrepo -v /path/to/local/yum/repo/cm-ml-rhel9-9.2-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.