From 908b6e67c6cbd71d6246a96fbc52f9e1929ba62e Mon Sep 17 00:00:00 2001 From: midoks Date: Fri, 5 May 2023 23:21:57 +0800 Subject: [PATCH] Update rhel.sh --- scripts/install/rhel.sh | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/scripts/install/rhel.sh b/scripts/install/rhel.sh index 88c1e6f9e..6009b30a4 100644 --- a/scripts/install/rhel.sh +++ b/scripts/install/rhel.sh @@ -2,6 +2,7 @@ PATH=/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:~/bin export PATH export LANG=en_US.UTF-8 +SYS_ARCH=`arch` if [ ! -f /usr/bin/applydeltarpm ];then yum -y provides '*/applydeltarpm' @@ -28,6 +29,12 @@ if [ $VERSION_ID -ge 8 ];then PKGMGR='dnf' fi +# install remi source +if [ $VERSION_ID -ge 8 ];then + rpm -ivh http://rpms.famillecollet.com/enterprise/remi-release-9.rpm + rpm --import http://rpms.famillecollet.com/RPM-GPG-KEY-remi +fi + #https need if [ ! -d /root/.acme.sh ];then curl https://get.acme.sh | sh @@ -120,9 +127,9 @@ $PKGMGR groupinstall -y "Development Tools" if [ $VERSION_ID -ge 8 ];then # EL8 及以上 if [ $VERSION_ID -ge 9 ];then - REPOS='--enablerepo=appstream,baseos,epel,extras,crb' + REPOS='--enablerepo=remi,appstream,baseos,epel,extras,crb' else - REPOS='--enablerepo=appstream,baseos,epel,extras,powertools' + REPOS='--enablerepo=remi,appstream,baseos,epel,extras,powertools' fi for rpms in gcc gcc-c++ lsof autoconf bzip2 bzip2-devel c-ares-devel \