Use new URL for Ubuntu repository
[iolib.git] / install-repo.bash
blob3072ad81e1eaea6e64adb9d5fb43bda52d56bb5c
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-get update -qq
22 apt-get -y --force-yes install libfixposix3 libfixposix-dev