-
Notifications
You must be signed in to change notification settings - Fork 1
/
install-packages.sh
24 lines (18 loc) · 1002 Bytes
/
install-packages.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
#!/bin/bash
# Bash "strict mode", to help catch problems and bugs in the shell
# script. Every bash script you write should include this. See
# http://redsymbol.net/articles/unofficial-bash-strict-mode/ for
# details.
set -euo pipefail
# Tell apt-get we're never going to be able to give manual
# feedback:
export DEBIAN_FRONTEND=noninteractive
# Update the package listing, so we know what package exist:
apt-get update
# Install security updates:
apt-get -y upgrade
# Install a new package, without unnecessary recommended packages:
apt-get -y install --no-install-recommends ca-certificates syslog-ng nano curl build-essential dnsutils pkg-config libcurl4-gnutls-dev libc6-dev libevent-dev m4 g++-multilib autoconf libtool libncurses5-dev unzip git python zlib1g-dev wget bsdmainutils automake libboost-all-dev libssl-dev libprotobuf-dev protobuf-compiler libqt4-dev libqrencode-dev libdb++-dev ntp ntpdate
# Delete cached files we don't need anymore:
apt-get clean
rm -rf /var/lib/apt/lists/*