Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save op-ct/6ae5c303fc37857c3cae0a8a9572ce5d to your computer and use it in GitHub Desktop.
Save op-ct/6ae5c303fc37857c3cae0a8a9572ce5d to your computer and use it in GitHub Desktop.
Reposync experimental EL8 SIMP dev repos
#!/bin/sh
# On EL7, ensure:
# yum install -y dnf dnf-plugins-core
#
set -eu
# Useful EL8-only options: --remote-time --norepopath
PATH_TO_LOCAL_MIRROR="$PWD/_download_path/build-6-6-0-centos-8-x86-64-repo-packages"
mkdir -p "$PATH_TO_LOCAL_MIRROR"
dnf reposync \
--download-metadata --downloadcomps \
--download-path "$PATH_TO_LOCAL_MIRROR" \
--setopt=reposdir=/dev/null \
--repofrompath simp,https://download.simp-project.com/simp/yum/experimental/simp6/el/8Server/x86_64/simp/ \
--repofrompath epel-modular,https://download.simp-project.com/simp/yum/experimental/simp6/el/8Server/x86_64/epel-modular/ \
--repofrompath puppet,https://download.simp-project.com/simp/yum/experimental/simp6/el/8Server/x86_64/puppet/ \
--repofrompath puppet7,https://download.simp-project.com/simp/yum/experimental/simp6/el/8Server/x86_64/puppet7/ \
--repofrompath BaseOS,https://download.simp-project.com/simp/yum/experimental/simp6/el/8Server/x86_64/BaseOS/ \
--repofrompath AppStream,https://download.simp-project.com/simp/yum/experimental/simp6/el/8Server/x86_64/AppStream/ \
--repofrompath extras,https://download.simp-project.com/simp/yum/experimental/simp6/el/8Server/x86_64/extras/ \
--repofrompath PowerTools,https://download.simp-project.com/simp/yum/experimental/simp6/el/8Server/x86_64/PowerTools/ \
--repofrompath epel,https://download.simp-project.com/simp/yum/experimental/simp6/el/8Server/x86_64/epel/ \
--repofrompath postgresql,https://download.simp-project.com/simp/yum/experimental/simp6/el/8Server/x86_64/postgresql/ \
--repoid simp \
--repoid epel-modular \
--repoid puppet \
--repoid puppet7 \
--repoid BaseOS \
--repoid AppStream \
--repoid extras \
--repoid PowerTools \
--repoid epel \
--repoid postgresql
printf "\nMirrored all repos into: %s\n\n" "$PATH_TO_LOCAL_MIRROR"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment