On Fri, 20 Dec 2013 18:06:33 +0500
Muhammad Yousuf Khan <sir...@gmail.com> wrote:
 
> what i want to do is, i  want some packages that are available in wheezy ,
> Sid and unstable repositories, however they are very old in squeeze.
> i also want to keep my system uptodate for any security patchs.  with
> command apt-get upgrade and apt-get dist-upgrade
> but if i run above commands while having entries of sid and unstable in
> sourcelist file it will upgrade my OS to unstable which i do not want.

Use APT pinning. From man page of apt_preferences:

       0 < P <=100
           causes a version to be installed only if there is no installed
           version of the package

So, try something like this:

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

It's also from the same man page :).

-- 
Fascism has many faces.

http://markorandjelovic.hopto.org


-- 
To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org 
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Archive: http://lists.debian.org/20140108141053.546a2...@eunet.rs

Reply via email to