summaryrefslogtreecommitdiff
path: root/util/fedora.sh
blob: 7065d09926049240827a3d4e0ba39103f72a8aa9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
#!/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/"
        ;;
    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
        ;;
    current)
        $0 28
        $0 29
        ;;
    all)
        $0 old
        $0 current
        ;;
esac