Create new files for Apt repo configuration
[iolib.git] / install-repo.bash
blobd16f250745db9ccf51410d4c885e4b641202918f
1 #!/bin/bash
3 set -o pipefail # trace ERR through pipes
4 set -o errtrace # trace ERR through 'time command' and other functions
5 set -o nounset ## set -u : exit the script if you try to use an uninitialised variable
6 set -o errexit ## set -e : exit the script if any statement returns a non-true return value
7 set -o xtrace # print commands as they are executed
9 cat > /etc/apt/sources.list.d/libfixposix.list <<EOF
10 deb http://download.opensuse.org/repositories/home:/sionescu/Debian/ ./
11 EOF
13 cat > /etc/apt/preferences.d/libfixposix <<EOF
14 Package: libfixposix*
15 Pin: origin download.opensuse.org
16 Pin-Priority: 1001
17 EOF
19 curl https://download.opensuse.org/repositories/home:/sionescu/Debian/Release.key | apt-key add -
21 apt-get update -qq
23 apt-get -y install libfixposix3 libfixposix-dev
25 dpkg -L libfixposix3 libfixposix-dev