File: install-packages.sh

package info (click to toggle)
bash-completion 1%3A2.16.0-7
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 7,424 kB
  • sloc: python: 11,241; makefile: 2,471; sh: 934; perl: 85; awk: 55; xml: 29; ansic: 7; java: 5; ruby: 2
file content (69 lines) | stat: -rwxr-xr-x 1,240 bytes parent folder | download | duplicates (2)
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
64
65
66
67
68
69
#!/bin/bash
set -xeuo pipefail

cd "${TMPDIR:-/tmp}"

shopt -s extglob
export DEBIAN_FRONTEND=noninteractive

dpkg --add-architecture i386 # for wine

apt-get update
apt-get -y upgrade

apt-get -y --no-install-recommends install \
    apt-file \
    software-properties-common

apt-add-repository multiverse

apt-file update

excluded=$(
    cat <<\EOF
arping
bcron-run
bison++
evince-gtk
gdb-minimal
gnat-4.6
gnuspool
heimdal
inetutils-ping
knot-dnsutils
knot-host
lpr
lprng
mariadb-client-5.5
mariadb-client-core-5.5
mplayer2
mysql-client-5.5
mysql-client-core-5.5
netscript-2.4
openresolv
percona-xtradb-cluster-client-5.5
postgres-xc-client
python3.5-venv
strongswan-starter
sudo-ldap
xserver-xorg-input-synaptics-lts-utopic
xserver-xorg-input-synaptics-lts-vivid
xserver-xorg-input-synaptics-lts-wily
xserver-xorg-input-synaptics-lts-xenial
EOF
)

while read -r file; do
    case $file in
        /*) printf "%s\n" "$file" ;;
        *) printf "%s\n" {/usr,}/{,s}bin/"$file" ;;
    esac
done |
    apt-file -lFf search - |
    grep -vF "$excluded" |
    xargs apt-get -y --no-install-recommends install

# Required but not pulled in by dependencies:
apt-get -y --no-install-recommends install \
    libwww-perl \
    postgresql-client