Add CentOS 8.0

This commit is contained in:
Yorhel 2019-10-22 21:10:44 +02:00
parent 6fe905f7c9
commit cf5c16241f
2 changed files with 18 additions and 1 deletions

View file

@ -38,6 +38,18 @@ centc() {
index rpm --sys centos-$VER --cat centosplus --mirror "$MIR$DIR/centosplus/x86_64/"
}
# CentOS 8.0+
centd() {
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 PowerTools --mirror "$MIR$DIR/PowerTools/x86_64/os/"
index rpm --sys centos-$VER --cat extras --mirror "$MIR$DIR/extras/x86_64/os/"
index rpm --sys centos-$VER --cat centosplus --mirror "$MIR$DIR/centosplus/x86_64/os/"
}
case "$1" in
2.1)
index rpmdir --sys centos-2.1 --cat core --mirror "${VMIRROR}2.1/final/i386/CentOS/RPMS/"
@ -189,6 +201,9 @@ case "$1" in
7.7)
centc 7.7 7.7.1908 $CMIRROR
;;
8.0)
centd 8.0 8.0.1905 $CMIRROR
;;
old)
$0 2.1
$0 3.1
@ -242,6 +257,7 @@ case "$1" in
current)
$0 6.10 # till 2020-11-30
$0 7.7 # till 2024-06-30
$0 8.0 # till 2029-05-31
;;
all)
$0 old