diff options
author | Yorhel <git@yorhel.nl> | 2019-10-22 21:10:44 +0200 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2019-10-22 21:10:44 +0200 |
commit | cf5c16241f39f24af59917835b1ab75e72ca8143 (patch) | |
tree | 67eaf8e6dd9b95c554fc56bec548a131a4a1e305 /util | |
parent | 6fe905f7c9f603d919bfca42097472035174b642 (diff) |
Add CentOS 8.0
Diffstat (limited to 'util')
-rwxr-xr-x | util/centos.sh | 16 |
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 |