Re: how to upgrade only from stable.
- To: debian-user@lists.debian.org
- Cc: debian <debian-user@lists.debian.org>
- Subject: Re: how to upgrade only from stable.
- From: Marko Randjelovic <markoran@eunet.rs>
- Date: Wed, 8 Jan 2014 14:10:53 +0100
- Message-id: <[🔎] 20140108141053.546a2e0e@eunet.rs>
- In-reply-to: <CAGWVfMmX0RYyXQog4W=4S27fTUj1PwHrXWNj+pPHRm+BvBrceQ@mail.gmail.com>
- References: <CAGWVfMn+uAnzK_hMDjCoL-xkZfZhgv8TKyVa7z_bPbLfHPPgpQ@mail.gmail.com> <1387522279.31965.23.camel@debian-bo> <1387535318.695.15.camel@archlinux> <CAGWVfMmX0RYyXQog4W=4S27fTUj1PwHrXWNj+pPHRm+BvBrceQ@mail.gmail.com>
On Fri, 20 Dec 2013 18:06:33 +0500
Muhammad Yousuf Khan <sirtcp@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
Reply to: