Skip to content

Instantly share code, notes, and snippets.

@swyngaard
Last active February 26, 2017 16:24
Show Gist options
  • Save swyngaard/d59be2f1bc41cbb7f412d621f8aeca07 to your computer and use it in GitHub Desktop.
Save swyngaard/d59be2f1bc41cbb7f412d621f8aeca07 to your computer and use it in GitHub Desktop.
Setup Debian Testing release with fallback to Unstable release
Install apt-transport-https:
$ sudo aptitude install apt-transport-https
Change your /etc/apt/sources.list to be the following in order to enable testing/unstable distro:
deb https://mirrors.kernel.org/debian/ testing main contrib non-free
deb-src https://mirrors.kernel.org/debian/ testing main contrib non-free
deb https://mirrors.kernel.org/debian/ unstable main contrib non-free
deb-src https://mirrors.kernel.org/debian/ unstable main contrib non-free
deb http://security.debian.org/ testing/updates main contrib non-free
deb-src http://security.debian.org/ testing/updates main contrib non-free
Then make sure to set testing as the default preference for packages. Create the file /etc/apt/apt.conf.d/local.conf and add the following line:
APT::Default-Release "testing";
Then update and upgrade:
$ sudo aptitude update
$ sudo aptitude full-upgrade
Check if a package has an unstable version available:
$ aptitude versions package_name
APT::Default-Release "testing";
deb https://mirrors.kernel.org/debian/ testing main contrib non-free
deb-src https://mirrors.kernel.org/debian/ testing main contrib non-free
deb https://mirrors.kernel.org/debian/ unstable main contrib non-free
deb-src https://mirrors.kernel.org/debian/ unstable main contrib non-free
deb http://security.debian.org/ testing/updates main contrib non-free
deb-src http://security.debian.org/ testing/updates main contrib non-free
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment