25 lines
755 B
Text
25 lines
755 B
Text
|
|
#!/usr/bin/env bash
|
||
|
|
|
||
|
|
# This script sets up the latest available musl-tools using apt pinning from debian unstable.
|
||
|
|
# The one available in stable and testing are quite outdated and this ensures we get the latest improvements
|
||
|
|
# This explictly installs musl from unstable and keeps the others at a higher priority
|
||
|
|
|
||
|
|
cat >> /etc/apt/sources.list <<eof
|
||
|
|
deb http://ftp.us.debian.org/debian unstable main non-free contrib
|
||
|
|
deb http://non-us.debian.org/debian-non-us unstable/non-us main contrib non-free
|
||
|
|
eof
|
||
|
|
|
||
|
|
cat >> /etc/apt/preferences <<eof
|
||
|
|
Package: *
|
||
|
|
Pin: release a=stable
|
||
|
|
Pin-Priority: 700
|
||
|
|
Package: *
|
||
|
|
Pin: release a=testing
|
||
|
|
Pin-Priority: 650
|
||
|
|
Package: *
|
||
|
|
pin: release a=unstable
|
||
|
|
pin-priority: 600
|
||
|
|
eof
|
||
|
|
|
||
|
|
apt-get update -y && apt-get install musl-tools/unstable -y
|