#!/bin/bash # debugrepo: build the cfo debug repos cd ~/cfo-debug EOLREPOS=no # Fedora 4 to 9 are EOL, and want sha headers and bz2 compression for dist in FC-{4,5,6,7,8,9} do [ "$EOLREPOS" = "no" ] && continue for arch in i386 x86_64 do echo "Building repo for $dist ($arch)" cd ARCHIVE/$dist/$arch createrepo_c --update --checksum sha --general-compress-type bz2 . cd - done done # Fedora 10 to 15 are EOL and want bz2 compression for dist in FC-1{0,1,2,3,4,5} do [ "$EOLREPOS" = "no" ] && continue for arch in i386 x86_64 do echo "Building repo for $dist ($arch)" cd ARCHIVE/$dist/$arch createrepo_c --update --general-compress-type bz2 . cd - done done # Fedora 16 to 27 are EOL and use xz compression for dist in FC-1{6,7,8,9} fc2{0,1,2,3,4,5,6,7} do [ "$EOLREPOS" = "no" ] && continue for arch in i386 x86_64 do echo "Building repo for $dist ($arch)" cd ARCHIVE/$dist/$arch createrepo_c --update --general-compress-type gz . cd - done done # Fedora 28 to 38 use xz compression for dist in fc2{8,9} fc3{0,1,2,3,4,5,6,7,8} do for arch in i386 x86_64 do echo "Building repo for $dist ($arch)" cd $dist/$arch createrepo_c --update --general-compress-type gz . cd - done done # Fedora 39 onwards uses default options for dist in fc39 fc40 fc41 fc42 development do for arch in i386 x86_64 do echo "Building repo for $dist ($arch)" cd $dist/$arch createrepo_c --update . cd - done done # RHEL-5 is EOL and wants sha headers and bz2 compression for dist in RHEL-5 do [ "$EOLREPOS" = "no" ] && continue for arch in i386 x86_64 do echo "Building repo for $dist ($arch)" cd ARCHIVE/$dist/$arch createrepo_c --update --checksum sha --general-compress-type bz2 . cd - done done # RHEL 6 is EOL and wants bz2 compression for dist in RHEL-6 do [ "$EOLREPOS" = "no" ] && continue for arch in i386 x86_64 do echo "Building repo for $dist ($arch)" cd ARCHIVE/$dist/$arch createrepo_c --update --general-compress-type bz2 . cd - done done # RHEL 7 is EOL and uses gz compression options for dist in rhel7 do [ "$EOLREPOS" = "no" ] && continue for arch in i386 x86_64 do echo "Building repo for $dist ($arch)" cd $dist/$arch createrepo_c --update --general-compress-type gz . cd - done done # No 32-bit repo from RHEL 8 onwards for dist in rhel8 rhel9 do for arch in x86_64 do echo "Building repo for $dist ($arch)" cd $dist/$arch createrepo_c --update --general-compress-type gz . cd - done done # RHEL 10 uses default options for dist in rhel10 do for arch in x86_64 do echo "Building repo for $dist ($arch)" cd $dist/$arch createrepo_c --update . cd - done done