Sign up ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. It's 100% free, no registration required.

So I did manage to set up apt-preferences but I'm not sure if I did it correctly. So basically what I want is, if I have the need I want to install packages from TESTING, UNSTABLE and DEB-MULTIMEDIA and that (ONLY) these Packages also get updates from the specific Repo. But as a "base" I want to have the STABLE-Version. Would be nice if somebody could check if I set this up correctly, because I'm not quite sure how the Pin-Priority works...

so this i my sources.list

## Compatible with Debian Wheezy, but use at your own risk.
deb waldorf main
#deb-src waldorf main

deb stable main contrib non-free
#deb-src wheezy main contrib non-free

deb wheezy-backports main contrib non-free

deb testing main contrib non-free

deb unstable main contrib non-free

#deb wheezy main non-free

deb wheezy/updates main contrib
#deb-src wheezy/updates main

and my apt/preferences

Package: *
Pin: release a=waldorf
Pin-Priority: 1001

Package: *
Pin: release a=stable
Pin-Priority: 800

Package: *
Pin: release a=wheezy-backports
Pin-Priority: 650

Package: *
Pin: release a=testing
Pin-Priority: 400

Package: *
Pin: release a=unstable
Pin-Priority: 90

Package: *
Pin: origin *
Pin-Priority: 10
share|improve this question
You're mixing Debian repos with another distribution? Is that Ok? Note that at least wheezy-backports already sets a priority server-side, which is what you usually want, so you don't need to set your own. From my machine it looks like 100. I think you want testing preferences under 100 too. Read man apt_preferences if you haven't already. – Faheem Mitha Jun 19 '14 at 23:06
The Crunchbang-Repo was there after the installation, I´m not quite sure if I can remove it safely, because I´m using crunchbang...and yes I read the man-page and lots of other documentation on the web, but I´m not 100% sure if I got it right... – makim Jun 20 '14 at 8:39
Just curious what the advantage is of running Crunchbang vs Debian directly. – Faheem Mitha Jun 20 '14 at 10:08
I think they have some updated/fixed packages in there, – makim Jun 20 '14 at 11:06
I see. Thanks @sine. – Faheem Mitha Jun 20 '14 at 16:50

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.