apt preferences to install from sid/experimental only when required
This commit is contained in:
parent
400da12f90
commit
6039fc59c8
|
|
@ -10,11 +10,13 @@ ENV LANG=C.UTF-8 \
|
|||
# * update-alternatives needs ../man1/
|
||||
# * ca-certificates for fetching from HTTPS repos
|
||||
RUN mkdir -p /usr/share/man/man1 \
|
||||
&& printf "Package: *\nPin: release o=Debian,a=stable\nPin-Priority: 900\n" \
|
||||
> /etc/apt/preferences.d/debian-stable.pref \
|
||||
&& echo "deb http://deb.debian.org/debian sid main" >> /etc/apt/sources.list \
|
||||
&& printf "Package: *\nPin: release o=Debian,a=sid\nPin-Priority: -10\n" \
|
||||
&& printf "Package: *\nPin: release o=Debian,a=sid\nPin-Priority: 150\n" \
|
||||
> /etc/apt/preferences.d/debian-sid.pref \
|
||||
&& echo "deb http://deb.debian.org/debian experimental main" >> /etc/apt/sources.list \
|
||||
&& printf "Package: *\nPin: release o=Debian,a=experimental\nPin-Priority: -100\n" \
|
||||
&& printf "Package: *\nPin: release o=Debian,a=experimental\nPin-Priority: 50\n" \
|
||||
> /etc/apt/preferences.d/debian-experimental.pref \
|
||||
&& apt-get update \
|
||||
&& apt-get -qy upgrade \
|
||||
|
|
|
|||
Loading…
Reference in New Issue