|
|
@ -137,38 +137,38 @@ function install() |
|
|
|
|
|
|
|
if [ -x "$(command -v apt)" ] |
|
|
|
then |
|
|
|
echo -e "Detect APT system\n" |
|
|
|
echo -e "APT system detected\n" |
|
|
|
apt install -y tar bzip2 gzip zip p7zip-full 1> /dev/null |
|
|
|
elif [ -x "$(command -v dnf)" ] && ! [ -n "$(grep "centos" /etc/*-release)" ] |
|
|
|
then |
|
|
|
echo -e "Detect DNF system\n" |
|
|
|
dnf install -y -q tar bzip2 gzip zip p7zip 1> /dev/null |
|
|
|
elif [ -x "$(command -v yum)" ] && ! [ -n "$(grep "centos" /etc/*-release)" ] |
|
|
|
then |
|
|
|
echo -e "Detect Yum system\n" |
|
|
|
yum install -y -q tar bzip2 gzip zip p7zip 1> /dev/null |
|
|
|
elif [ -n "$(grep "centos" /etc/*-release)" ] |
|
|
|
then |
|
|
|
echo -e "Detect CentOS system\n" |
|
|
|
echo -e "CentOS system detected\n" |
|
|
|
yum install -y -q epel-release 1> /dev/null |
|
|
|
rpm -U --quiet http://mirrors.kernel.org/fedora-epel/6/i386/epel-release-6-8.noarch.rpm 1> /dev/null |
|
|
|
rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-EPEL-6 1> /dev/null |
|
|
|
yum repolist 1> /dev/null |
|
|
|
yum install -y -q p7zip p7zip-plugins 1> /dev/null |
|
|
|
yum install -y -q tar bzip2 gzip zip 1> /dev/null |
|
|
|
elif [ -x "$(command -v dnf)" ] |
|
|
|
then |
|
|
|
echo -e "DNF system detected\n" |
|
|
|
dnf install -y -q tar bzip2 gzip zip p7zip 1> /dev/null |
|
|
|
elif [ -x "$(command -v yum)" ] |
|
|
|
then |
|
|
|
echo -e "Yum system detected\n" |
|
|
|
yum install -y -q tar bzip2 gzip zip p7zip 1> /dev/null |
|
|
|
elif [ -x "$(command -v pacman)" ] |
|
|
|
then |
|
|
|
echo -e "Detect Pacman system\n" |
|
|
|
echo -e "Pacman system detected\n" |
|
|
|
pacman -Sqy --noconfirm tar bzip2 gzip zip p7zip 1> /dev/null |
|
|
|
elif [ -x "$(command -v zypper)" ] |
|
|
|
then |
|
|
|
echo -e "Detect Zypper system\n" |
|
|
|
echo -e "Zypper system detected\n" |
|
|
|
zypper install -y tar bzip2 gzip zip p7zip-full 1> /dev/null |
|
|
|
else |
|
|
|
echo -e "System installer not detected\n" |
|
|
|
fi |
|
|
|
|
|
|
|
echo -e "\nDependencies installation completed\n" |
|
|
|
echo -e "\nDependencies installation finished\n" |
|
|
|
exit 0 |
|
|
|
} |
|
|
|
|
|
|
|