#!/bin/bash # Process optional args REPOID="" NEWEST="" LIST_ONLY="" FULL_CHECK="" EOL_DISTS="no" # How to use repoc usage () { echo "repoc: usage: repoc [-f] [-l] [-r repoid]" } while getopts flnr: c do case $c in f) FULL_CHECK="-f" ;; l) LIST_ONLY="-l" ;; r) REPOID="-r $OPTARG" ;; \?) usage 1>&2 exit 1 ;; esac done shift `expr $OPTIND - 1` OPTIONS="$FULL_CHECK $LIST_ONLY $NEWEST $REPOID" # Fedora 19 (x86_64) do-repoc -q $OPTIONS fc19.64 # Fedora Rawhide (x86_64) do-repoc -q $OPTIONS rawhide.64 # Fedora Branched for Fedora 42 (x86_64) do-repoc -q $OPTIONS branched.64 # Fedora 41 (x86_64) do-repoc -q $OPTIONS fc41.64 # Fedora 40 (x86_64) do-repoc -q $OPTIONS fc40.64 # Fedora 39 (x86_64) do-repoc -q $OPTIONS fc39.64 # Fedora 38 (x86_64) do-repoc -q $OPTIONS fc38.64 # Fedora 37 (x86_64) do-repoc -q $OPTIONS fc37.64 # Fedora 36 (x86_64) do-repoc -q $OPTIONS fc36.64 # Fedora 35 (x86_64) do-repoc -q $OPTIONS fc35.64 # Fedora 34 (x86_64) do-repoc -q $OPTIONS fc34.64 # Fedora 33 (x86_64) do-repoc -q $OPTIONS fc33.64 # Fedora 32 (x86_64) do-repoc -q $OPTIONS fc32.64 # Fedora 31 (x86_64) do-repoc -q $OPTIONS fc31.64 # Fedora 30 (x86_64) do-repoc -q $OPTIONS fc30.64 # Fedora 29 (x86_64) do-repoc -q $OPTIONS fc29.64 # Fedora 28 (x86_64) do-repoc -q $OPTIONS fc28.64 # Fedora 27 (x86_64) do-repoc -q $OPTIONS fc27.64 # Fedora 26 (x86_64) do-repoc -q $OPTIONS fc26.64 # Fedora 25 (x86_64) do-repoc -q $OPTIONS fc25.64 # Fedora 24 (x86_64) do-repoc -q $OPTIONS fc24.64 # Fedora 23 (x86_64) do-repoc -q $OPTIONS fc23.64 # Fedora 22 (x86_64) do-repoc -q $OPTIONS fc22.64 # Fedora 21 (x86_64) do-repoc -q $OPTIONS fc21.64 # Fedora 20 (x86_64) do-repoc -q $OPTIONS fc20.64 # Fedora 18 (x86_64) [ "$EOL_DISTS" != "no" ] && do-repoc -q $OPTIONS fc18.64 # Fedora 17 (x86_64) [ "$EOL_DISTS" != "no" ] && do-repoc -q $OPTIONS fc17.64 # Fedora 16 (x86_64) [ "$EOL_DISTS" != "no" ] && do-repoc -q $OPTIONS fc16.64 # Fedora 15 (x86_64) [ "$EOL_DISTS" != "no" ] && do-repoc -q $OPTIONS fc15.64 # Fedora 14 (x86_64) [ "$EOL_DISTS" != "no" ] && do-repoc -q $OPTIONS fc14.64 # Fedora 13 (x86_64) [ "$EOL_DISTS" != "no" ] && do-repoc -q $OPTIONS fc13.64 # Red Hat Enterprise Linux 5 (x86_64) [ "$EOL_DISTS" != "no" ] && do-repoc -q $OPTIONS rhel5.64 # Red Hat Enterprise Linux 6 (x86_64) [ "$EOL_DISTS" != "no" ] && do-repoc -q $OPTIONS rhel6.64 # Red Hat Enterprise Linux 7 (x86_64) do-repoc -q $OPTIONS rhel7.64 # Red Hat Enterprise Linux 8 (x86_64) do-repoc -q $OPTIONS rhel8.64 # Red Hat Enterprise Linux 9 (x86_64) do-repoc -q $OPTIONS rhel9.64 # Red Hat Enterprise Linux 10 (x86_64) do-repoc -q $OPTIONS rhel10.64 # Fedora 12 (x86_64) [ "$EOL_DISTS" != "no" ] && do-repoc -q $OPTIONS fc12.64 # Fedora 11 (x86_64) [ "$EOL_DISTS" != "no" ] && do-repoc -q $OPTIONS fc11.64 # Fedora 10 (x86_64) [ "$EOL_DISTS" != "no" ] && do-repoc -q $OPTIONS fc10.64 # Fedora 9 (x86_64) [ "$EOL_DISTS" != "no" ] && do-repoc -q $OPTIONS fc9.64 # Fedora 8 (x86_64) [ "$EOL_DISTS" != "no" ] && do-repoc -q $OPTIONS fc8.64 # Fedora 7 (x86_64) [ "$EOL_DISTS" != "no" ] && do-repoc -q $OPTIONS fc7.64 # Fedora Core 6 (x86_64) [ "$EOL_DISTS" != "no" ] && do-repoc -q $OPTIONS fc6.64 # Fedora Core 5 (x86_64) [ "$EOL_DISTS" != "no" ] && do-repoc -q $OPTIONS fc5.64 # Fedora Core 4 (x86_64) [ "$EOL_DISTS" != "no" ] && do-repoc -q $OPTIONS fc4.64 # Fedora Core 4 (i386) [ "$EOL_DISTS" != "no" ] && do-repoc -q $OPTIONS fc4.32 # Fedora Core 5 (i386) [ "$EOL_DISTS" != "no" ] && do-repoc -q $OPTIONS fc5.32 # Fedora 6 (i386) [ "$EOL_DISTS" != "no" ] && do-repoc -q $OPTIONS fc6.32 # Fedora 7 (i386) [ "$EOL_DISTS" != "no" ] && do-repoc -q $OPTIONS fc7.32 # Fedora 8 (i386) [ "$EOL_DISTS" != "no" ] && do-repoc -q $OPTIONS fc8.32 # Fedora 9 (i386) [ "$EOL_DISTS" != "no" ] && do-repoc -q $OPTIONS fc9.32 # Fedora 10 (i386) [ "$EOL_DISTS" != "no" ] && do-repoc -q $OPTIONS fc10.32 # Fedora 11 (i586) [ "$EOL_DISTS" != "no" ] && do-repoc -q $OPTIONS fc11.32 # Fedora 12 (i686) [ "$EOL_DISTS" != "no" ] && do-repoc -q $OPTIONS fc12.32 # Fedora 13 (i686) [ "$EOL_DISTS" != "no" ] && do-repoc -q $OPTIONS fc13.32 # Fedora 14 (i686) [ "$EOL_DISTS" != "no" ] && do-repoc -q $OPTIONS fc14.32 # Fedora 15 (i686) [ "$EOL_DISTS" != "no" ] && do-repoc -q $OPTIONS fc15.32 # Fedora 16 (i686) [ "$EOL_DISTS" != "no" ] && do-repoc -q $OPTIONS fc16.32 # Fedora 17 (i686) [ "$EOL_DISTS" != "no" ] && do-repoc -q $OPTIONS fc17.32 # Fedora 18 (i686) [ "$EOL_DISTS" != "no" ] && do-repoc -q $OPTIONS fc18.32 # Fedora 19 (i686) do-repoc -q $OPTIONS fc19.32 # Fedora 20 (i686) do-repoc -q $OPTIONS fc20.32 # Fedora 21 (i686) do-repoc -q $OPTIONS fc21.32 # Fedora 22 (i686) do-repoc -q $OPTIONS fc22.32 # Fedora 23 (i686) do-repoc -q $OPTIONS fc23.32 # Fedora 24 (i686) do-repoc -q $OPTIONS fc24.32 # Fedora 25 (i686) do-repoc -q $OPTIONS fc25.32 # Fedora 26 (i686) do-repoc -q $OPTIONS fc26.32 # Fedora 27 (i686) do-repoc -q $OPTIONS fc27.32 # Fedora 28 (i686) do-repoc -q $OPTIONS fc28.32 # Fedora 29 (i686) do-repoc -q $OPTIONS fc29.32 # Fedora 30 (i686) do-repoc -q $OPTIONS fc30.32 # Fedora 31 (i686) do-repoc -q $OPTIONS fc31.32 # Fedora 32 (i686) do-repoc -q $OPTIONS fc32.32 # Fedora 33 (i686) do-repoc -q $OPTIONS fc33.32 # Fedora 34 (i686) do-repoc -q $OPTIONS fc34.32 # Fedora 35 (i686) do-repoc -q $OPTIONS fc35.32 # Fedora 36 (i686) do-repoc -q $OPTIONS fc36.32 # Fedora 37 (i686) do-repoc -q $OPTIONS fc37.32 # Fedora 38 (i686) do-repoc -q $OPTIONS fc38.32 # Fedora 39 (i686) do-repoc -q $OPTIONS fc39.32 # Fedora 40 (i686) do-repoc -q $OPTIONS fc40.32 # Fedora 41 (i686) do-repoc -q $OPTIONS fc41.32 # Fedora Branched for Fedora 42 (i686) do-repoc -q $OPTIONS branched.32 # Fedora Rawhide (i686) do-repoc -q $OPTIONS rawhide.32 # Red Hat Enterprise Linux 5 (i386) [ "$EOL_DISTS" != "no" ] && do-repoc -q $OPTIONS rhel5.32 # Red Hat Enterprise Linux 6 (i386) [ "$EOL_DISTS" != "no" ] && do-repoc -q $OPTIONS rhel6.32 # Red Hat Enterprise Linux 7 (i386) do-repoc -q $OPTIONS rhel7.32