#!/bin/sh . ./common.sh AMIRROR=http://archives.fedoraproject.org/pub/archive/fedora/linux/ CMIRROR=http://mirrors.n-ix.net/fedora/linux/ # Fedora 7+ is pretty regular fedora() { # release arch mirror MIR=$AMIRROR [ -n "$3" ] && MIR=$3 index rpm --sys fedora-$1 --mirror "${MIR}releases/$1/Everything/$2/os/" index rpm --sys fedora-$1 --mirror "${MIR}updates/$1/$2/" } case "$1" in 1) index rpmdir --sys fedora-1 --mirror "${AMIRROR}core/1/i386/os/Fedora/RPMS/" ;; 2) index rpm --sys fedora-2 --mirror "${AMIRROR}core/2/i386/os/" ;; 3) index rpm --sys fedora-3 --mirror "${AMIRROR}core/3/i386/os/" index rpm --sys fedora-3 --mirror "${AMIRROR}extras/3/i386/" ;; 4) index rpm --sys fedora-4 --mirror "${AMIRROR}core/4/i386/os/" index rpm --sys fedora-4 --mirror "${AMIRROR}extras/4/i386/" ;; 5) index rpm --sys fedora-5 --mirror "${AMIRROR}core/5/i386/os/" index rpm --sys fedora-5 --mirror "${AMIRROR}extras/5/i386/" ;; 6) index rpm --sys fedora-6 --mirror "${AMIRROR}core/6/i386/os/" index rpm --sys fedora-6 --mirror "${AMIRROR}extras/6/i386/" ;; 7) fedora 7 i386 ;; 8) fedora 8 i386 ;; 9) fedora 9 i386 ;; 10) fedora 10 i386 ;; 11) fedora 11 i386 ;; 12) fedora 12 i386 ;; 13) fedora 13 i386 ;; 14) fedora 14 i386 ;; 15) fedora 15 i386 ;; 16) fedora 16 i386 ;; 17) fedora 17 i386 ;; 18) fedora 18 x86_64 ;; 19) fedora 19 x86_64 ;; 20) fedora 20 x86_64 ;; 21) fedora 21 x86_64 ;; 22) fedora 22 x86_64 ;; 23) fedora 23 x86_64 ;; 24) fedora 24 x86_64 ;; 25) fedora 25 x86_64 $CMIRROR ;; 26) fedora 26 x86_64 $CMIRROR ;; 27) fedora 27 x86_64 $CMIRROR ;; 28) index rpm --sys fedora-28 --mirror "${CMIRROR}releases/28/Everything/x86_64/os/" index rpm --sys fedora-28 --mirror "${CMIRROR}updates/28/Everything/x86_64/" ;; 29) index rpm --sys fedora-29 --mirror "${CMIRROR}releases/29/Everything/x86_64/os/" index rpm --sys fedora-29 --mirror "${CMIRROR}updates/29/Everything/x86_64/" ;; 30) index rpm --sys fedora-30 --mirror "${CMIRROR}releases/30/Everything/x86_64/os/" index rpm --sys fedora-30 --mirror "${CMIRROR}updates/30/Everything/x86_64/" ;; 31) index rpm --sys fedora-31 --mirror "${CMIRROR}releases/31/Everything/x86_64/os/" index rpm --sys fedora-31 --mirror "${CMIRROR}updates/31/Everything/x86_64/" ;; 32) index rpm --sys fedora-32 --mirror "${CMIRROR}releases/32/Everything/x86_64/os/" index rpm --sys fedora-32 --mirror "${CMIRROR}updates/32/Everything/x86_64/" ;; 33) index rpm --sys fedora-33 --mirror "${CMIRROR}releases/33/Everything/x86_64/os/" index rpm --sys fedora-33 --mirror "${CMIRROR}updates/33/Everything/x86_64/" ;; 34) index rpm --sys fedora-34 --mirror "${CMIRROR}releases/34/Everything/x86_64/os/" index rpm --sys fedora-34 --mirror "${CMIRROR}updates/34/Everything/x86_64/" ;; 35) index rpm --sys fedora-35 --mirror "${CMIRROR}releases/35/Everything/x86_64/os/" index rpm --sys fedora-35 --mirror "${CMIRROR}updates/35/Everything/x86_64/" ;; 36) index rpm --sys fedora-36 --mirror "${CMIRROR}releases/36/Everything/x86_64/os/" index rpm --sys fedora-36 --mirror "${CMIRROR}updates/36/Everything/x86_64/" ;; 37) index rpm --sys fedora-37 --mirror "${CMIRROR}releases/37/Everything/x86_64/os/" index rpm --sys fedora-37 --mirror "${CMIRROR}updates/37/Everything/x86_64/" ;; 38) index rpm --sys fedora-38 --mirror "${CMIRROR}releases/38/Everything/x86_64/os/" index rpm --sys fedora-38 --mirror "${CMIRROR}updates/38/Everything/x86_64/" ;; 39) index rpm --sys fedora-39 --mirror "${CMIRROR}releases/39/Everything/x86_64/os/" index rpm --sys fedora-39 --mirror "${CMIRROR}updates/39/Everything/x86_64/" ;; 40) index rpm --sys fedora-40 --mirror "${CMIRROR}releases/40/Everything/x86_64/os/" index rpm --sys fedora-40 --mirror "${CMIRROR}updates/40/Everything/x86_64/" ;; 41) index rpm --sys fedora-41 --mirror "${CMIRROR}releases/41/Everything/x86_64/os/" index rpm --sys fedora-41 --mirror "${CMIRROR}updates/41/Everything/x86_64/" ;; 42) index rpm --sys fedora-42 --mirror "${CMIRROR}releases/42/Everything/x86_64/os/" index rpm --sys fedora-42 --mirror "${CMIRROR}updates/42/Everything/x86_64/" ;; 43) index rpm --sys fedora-43 --mirror "${CMIRROR}releases/43/Everything/x86_64/os/" index rpm --sys fedora-43 --mirror "${CMIRROR}updates/43/Everything/x86_64/" ;; old) $0 1 $0 2 $0 3 $0 4 $0 5 $0 6 $0 7 $0 8 $0 9 $0 10 $0 11 $0 12 $0 13 $0 14 $0 15 $0 16 $0 17 $0 18 $0 19 $0 20 $0 21 $0 22 $0 23 $0 24 $0 25 $0 26 $0 27 $0 28 $0 29 $0 30 $0 31 $0 32 $0 33 $0 34 $0 35 $0 36 $0 37 $0 38 $0 39 $0 40 $0 41 ;; current) $0 42 $0 43 ;; all) $0 old $0 current ;; esac