summaryrefslogtreecommitdiff
path: root/util/centos.sh
diff options
context:
space:
mode:
Diffstat (limited to 'util/centos.sh')
-rwxr-xr-xutil/centos.sh16
1 files changed, 16 insertions, 0 deletions
diff --git a/util/centos.sh b/util/centos.sh
index 8364d28..2a76793 100755
--- a/util/centos.sh
+++ b/util/centos.sh
@@ -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