Update rhel.sh

pull/407/head
midoks 2 years ago
parent dfe46332db
commit 908b6e67c6
  1. 11
      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 \

Loading…
Cancel
Save