| 1 | Example for Debian Wheezy with libraries from testing: |
| 2 | |
| 3 | * ''/etc/apt/preferences.d/pinning'': |
| 4 | {{{ |
| 5 | Package: * |
| 6 | Pin: release a=stable |
| 7 | Pin-Priority: 700 |
| 8 | |
| 9 | Package: * |
| 10 | Pin: release a=testing |
| 11 | Pin-Priority: 650 |
| 12 | |
| 13 | Package: * |
| 14 | Pin: release a=unstable |
| 15 | Pin-Priority: 600 |
| 16 | }}} |
| 17 | * ''/etc/apt/sources.list'': If it looks like this: |
| 18 | {{{ |
| 19 | deb http://ftp.de.debian.org/debian/ wheezy main contrib non-free |
| 20 | deb-src http://ftp.de.debian.org/debian/ wheezy main contrib non-free |
| 21 | |
| 22 | deb http://security.debian.org/ wheezy/updates main contrib non-free |
| 23 | deb-src http://security.debian.org/ wheezy/updates main contrib non-free |
| 24 | |
| 25 | deb http://ftp.de.debian.org/debian/ wheezy-updates main contrib non-free |
| 26 | deb-src http://ftp.de.debian.org/debian/ wheezy-updates main contrib non-free |
| 27 | }}} |
| 28 | * Add this (make sure the hosts are the same): ''/etc/apt/sources.list.d/testing.list'': |
| 29 | {{{ |
| 30 | deb http://ftp.de.debian.org/debian/ testing main contrib non-free |
| 31 | deb-src http://ftp.de.debian.org/debian/ testing main contrib non-free |
| 32 | }}} |
| 33 | * Update and install libraries: |
| 34 | {{{ |
| 35 | apt-get update |
| 36 | apt-get -t testing install libc6 libc6-dev libc6-i386 libc6:i386 libc6-i686:i386 locales |
| 37 | }}} |
| 38 | |
| 39 | Sources: |
| 40 | * http://jaqque.sbih.org/kplug/apt-pinning.html |
| 41 | * http://stackoverflow.com/questions/10863613/how-to-upgrade-glibc-from-version-2-13-to-2-15-on-debian |