Import the repo key before installing .deb packages
[iolib.git] / install-repo.bash
blob80f268e1889d376235a7819366b334cc70492fb2
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 <<EOF
10 deb http://download.opensuse.org/repositories/home:/sionescu/Ubuntu/ ./
11 EOF
13 cat >> /etc/apt/preferences <<EOF
15 Package: libfixposix*
16 Pin: origin download.opensuse.org
17 Pin-Priority: 1001
18 EOF
20 apt-key adv --recv-key https://download.opensuse.org/repositories/home:/sionescu/Ubuntu/Release.key
22 apt-get update -qq
24 apt-get -y install libfixposix3 libfixposix-dev
26 dpkg -L libfixposix3 libfixposix-dev