-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall_packages.sh
More file actions
executable file
·42 lines (37 loc) · 1.47 KB
/
install_packages.sh
File metadata and controls
executable file
·42 lines (37 loc) · 1.47 KB
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
#!/bin/bash
DISTRO=$(awk -F= '/^NAME/{print $2}' /etc/os-release)
test -n $DISTRO && echo "distribution detected: ${DISTRO}" || echo "could not determine OS type"
if [[ "${DISTRO}" == 'Fedora' ]]; then
echo 'Installing Fedora libraries for tls_wrapper'
sudo dnf install \
avahi-devel \
elfutils-libelf-devel \
glib-devel \
gtk3-devel \
kernel-devel \
libconfig-devel \
libevent-devel \
libnl3-devel \
libnotify-devel \
openssl-devel \
qrencode \
libyaml-dev \
echo 'Installed'
fi
if [[ "${DISTRO}" == '"Ubuntu"' ]]; then
echo 'Installing Ubuntu libraries for tls_wrapper'
sudo apt install \
libavahi-client-dev \
libconfig-dev \
libelf-dev \
libevent-dev \
libglib2.0-dev \
libnl-3-dev \
libnl-genl-3-dev \
libnotify-dev \
linux-headers-$(uname -r | sed 's/[0-9\.\-]*//') \
openssl \
qrencode \
libyaml-dev \
echo 'Installed'
fi