Bunch of repo updates

This commit is contained in:
Yorhel 2022-12-17 13:06:42 +01:00
parent 47d86c06fd
commit 81c9ec53ff
5 changed files with 42 additions and 1 deletions

View file

@ -4,6 +4,7 @@
VMIRROR=http://vault.centos.org/
CMIRROR=http://centos.mirrors.ovh.net/ftp.centos.org/
SMIRROR=http://mirror.transip.net/centos-stream/
# Centos 3.1 - 3.6 (doesn't have useful repo metadata)
centa() {
@ -50,6 +51,18 @@ centd() {
index rpm --sys centos-$VER --cat centosplus --mirror "$MIR$DIR/centosplus/x86_64/os/"
}
# CentOS Stream 9+
cente() {
local VER=$1
local DIR=$2
local MIR=${3:-$VMIRROR}
index rpm --sys centos-$VER --cat BaseOS --mirror "$MIR$DIR/BaseOS/x86_64/os/"
index rpm --sys centos-$VER --cat AppStream --mirror "$MIR$DIR/AppStream/x86_64/os/"
index rpm --sys centos-$VER --cat CRB --mirror "$MIR$DIR/CRB/x86_64/os/"
# There's also NFV and RT (with lots of overlap) and HighAvailability and ResilientStorage (with lots of overlap).
# Not sure which of those should be included.
}
case "$1" in
2.1)
index rpmdir --sys centos-2.1 --cat core --mirror "${VMIRROR}2.1/final/i386/CentOS/RPMS/"
@ -225,6 +238,12 @@ case "$1" in
8.5)
centd 8.5 8.5.2111 $CMIRROR
;;
8-stream)
centd 8-stream 8-stream $CMIRROR
;;
9-stream)
cente 9-stream 9-stream $SMIRROR
;;
old)
$0 2.1
$0 3.1
@ -286,6 +305,8 @@ case "$1" in
;;
current)
$0 7.9 # till 2024-06-30
$0 8-stream
$0 9-stream
;;
all)
$0 old