[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to upgrade only from stable.



Somebody mentioned apt pinning, which will achieve what you want.  But the easier way is to put this in /etc/apt/apt.conf:

APT::Default-Release "squeeze";

Test this by running 'apt-get update && apt-get upgrade'.  You don't have to go through with the upgrade, just look and see what is being upgraded.  You can also run 'apt-cache policy somepackagename' to see the installed version of a package and the available versions, along with their pin value.

Substitute "squeeze" for "wheezy" if you want Debian Stable (it looks like you're currently running Squeeze, which is the old stable).

-Rob



On Fri, Dec 20, 2013 at 1:32 AM, Muhammad Yousuf Khan <sirtcp@gmail.com> wrote:
i am using stable,testing and unstable repositories  to get up to date packages.
and i am using Debian squeeze,

lets say if i want to upgrade my Debian from 6.0.4 to 6.0.7 only from stable. then how i could do it?

actually i am confused a bit, lets say if i run "apt-get upgrade" and i have all the level of repositories, will it be upgrading from all the repo? what i want is to upgrade the OS only from stable however in future if i want to use any upgrade package then i could also use testing and unstable repositories with out changing /etc/apt/sourcelists and running the command "apt-get update" all the time.


please help

Thanks,
Myk


Reply to: