forked from rasa/vmware-tools-patches
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·63 lines (59 loc) · 1.59 KB
/
setup.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/bin/bash
# This file should be sourced to install the dependencies before they are needed
# . setup.sh
if [[ -e /etc/redhat-release ]]; then
if hash yum >/dev/null 2>&1; then
sudo yum -y install \
unzip \
patch \
gcc \
glibc-headers \
kernel-devel \
kernel-headers \
make \
perl \
wget
fi
fi
if [[ -e /etc/debian_version ]]; then
if hash apt-get >/dev/null 2>&1; then
sudo apt-get install -y \
build-essential \
dkms \
gcc \
linux-headers-$(uname -r) \
patch \
perl \
psmisc \
make \
unzip \
wget \
zip
fi
fi
if [[ -e /etc/arch-release ]]; then
if hash pacman >/dev/null 2>&1; then
sudo pacman -Syu --needed --noconfirm \
wget \
unzip \
patch \
perl \
gcc \
glibc \
linux-headers \
make \
base \
base-devel
fi
fi
if [[ -e /etc/SuSE-release ]]; then
if hash zypper >/dev/null 2>&1; then
sudo zypper --non-interactive install \
make \
gcc \
kernel-devel \
patch \
wget \
unzip
fi
fi