Debian - how to keep a mixed system


Create or edit /etc/apt/apt.conf with this content :

APT::Default-Release "stable";

Edit your APT source list /etc/apt/sources.list as the following (adapt to your favorite mirrors) :

<code># unstable
deb unstable main
deb-src unstable main

# stable
deb etch main
deb-src etch main

# security updates
deb etch/updates main contrib
deb-src etch/updates main contrib</code>

Now whenever you want to install a package in “unstable” on your “stable” system do the following :

aptitude -t unstable install packagename

Thanks for reading this post!

If you found an issue in this article, you can create an issue on Github.

If you have a comment or question, please drop me a line below!