189 lines
5.1 KiB
Bash
Executable file
189 lines
5.1 KiB
Bash
Executable file
#!/bin/sh
|
|
|
|
. ./common.sh
|
|
|
|
AMIRROR=http://archives.fedoraproject.org/pub/archive/fedora/linux/
|
|
CMIRROR=http://mirror.nl.leaseweb.net/fedora/linux/
|
|
|
|
|
|
# Fedora 7+ is pretty regular
|
|
fedora() { # release arch mirror
|
|
MIR=$AMIRROR
|
|
[ -n "$3" ] && MIR=$3
|
|
index rpm --sys fedora-$1 --cat everything --mirror "${MIR}releases/$1/Everything/$2/os/"
|
|
index rpm --sys fedora-$1 --cat everything --mirror "${MIR}updates/$1/$2/"
|
|
}
|
|
|
|
|
|
case "$1" in
|
|
1)
|
|
index rpmdir --sys fedora-1 --cat core --mirror "${AMIRROR}core/1/i386/os/Fedora/RPMS/"
|
|
;;
|
|
2)
|
|
index rpm --sys fedora-2 --cat core --mirror "${AMIRROR}core/2/i386/os/"
|
|
;;
|
|
3)
|
|
index rpm --sys fedora-3 --cat core --mirror "${AMIRROR}core/3/i386/os/"
|
|
index rpm --sys fedora-3 --cat extras --mirror "${AMIRROR}extras/3/i386/"
|
|
;;
|
|
4)
|
|
index rpm --sys fedora-4 --cat core --mirror "${AMIRROR}core/4/i386/os/"
|
|
index rpm --sys fedora-4 --cat extras --mirror "${AMIRROR}extras/4/i386/"
|
|
;;
|
|
5)
|
|
index rpm --sys fedora-5 --cat core --mirror "${AMIRROR}core/5/i386/os/"
|
|
index rpm --sys fedora-5 --cat extras --mirror "${AMIRROR}extras/5/i386/"
|
|
;;
|
|
6)
|
|
index rpm --sys fedora-6 --cat core --mirror "${AMIRROR}core/6/i386/os/"
|
|
index rpm --sys fedora-6 --cat extras --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 --cat everything --mirror "${CMIRROR}releases/28/Everything/x86_64/os/"
|
|
index rpm --sys fedora-28 --cat everything --mirror "${CMIRROR}updates/28/Everything/x86_64/"
|
|
;;
|
|
29)
|
|
index rpm --sys fedora-29 --cat everything --mirror "${CMIRROR}releases/29/Everything/x86_64/os/"
|
|
index rpm --sys fedora-29 --cat everything --mirror "${CMIRROR}updates/29/Everything/x86_64/"
|
|
;;
|
|
30)
|
|
index rpm --sys fedora-30 --cat everything --mirror "${CMIRROR}releases/30/Everything/x86_64/os/"
|
|
index rpm --sys fedora-30 --cat everything --mirror "${CMIRROR}updates/30/Everything/x86_64/"
|
|
;;
|
|
31)
|
|
index rpm --sys fedora-31 --cat everything --mirror "${CMIRROR}releases/31/Everything/x86_64/os/"
|
|
index rpm --sys fedora-31 --cat everything --mirror "${CMIRROR}updates/31/Everything/x86_64/"
|
|
;;
|
|
32)
|
|
index rpm --sys fedora-32 --cat everything --mirror "${CMIRROR}releases/32/Everything/x86_64/os/"
|
|
index rpm --sys fedora-32 --cat everything --mirror "${CMIRROR}updates/32/Everything/x86_64/"
|
|
;;
|
|
33)
|
|
index rpm --sys fedora-33 --cat everything --mirror "${CMIRROR}releases/33/Everything/x86_64/os/"
|
|
index rpm --sys fedora-33 --cat everything --mirror "${CMIRROR}updates/33/Everything/x86_64/"
|
|
;;
|
|
34)
|
|
index rpm --sys fedora-34 --cat everything --mirror "${CMIRROR}releases/34/Everything/x86_64/os/"
|
|
index rpm --sys fedora-34 --cat everything --mirror "${CMIRROR}updates/34/Everything/x86_64/"
|
|
;;
|
|
35)
|
|
index rpm --sys fedora-35 --cat everything --mirror "${CMIRROR}releases/35/Everything/x86_64/os/"
|
|
index rpm --sys fedora-35 --cat everything --mirror "${CMIRROR}updates/35/Everything/x86_64/"
|
|
;;
|
|
36)
|
|
index rpm --sys fedora-36 --cat everything --mirror "${CMIRROR}releases/36/Everything/x86_64/os/"
|
|
index rpm --sys fedora-36 --cat everything --mirror "${CMIRROR}updates/36/Everything/x86_64/"
|
|
;;
|
|
37)
|
|
index rpm --sys fedora-37 --cat everything --mirror "${CMIRROR}releases/37/Everything/x86_64/os/"
|
|
index rpm --sys fedora-37 --cat everything --mirror "${CMIRROR}updates/37/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
|
|
;;
|
|
current)
|
|
$0 34
|
|
$0 35
|
|
$0 36
|
|
$0 37
|
|
;;
|
|
all)
|
|
$0 old
|
|
$0 current
|
|
;;
|
|
esac
|