LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (http://www.linuxquestions.org/questions/debian-26/)
-   -   APT pinning question (http://www.linuxquestions.org/questions/debian-26/apt-pinning-question-677679/)

parent's_basement 10-19-2008 10:04 PM

APT pinning question
 
Hello,

I'm running testing and want to pin unstable. I know that when pinning is set up correctly, apt will first look for a given package in testing and if it can't find it, will then look in unstable. Here's my question. What if there is a bunch of new programs in unstable that aren't in testing yet? When I run aptitude update and then aptitude upgrade, will apt install all of those programs onto my system? Seems that if this is the case, I may end up with a bunch of stuff I don't want. Thoughts?

Thanks Much,

pb

megaprog 10-20-2008 04:30 AM

You mean a new version of a package already installed? If this is the case, it will not install it unless all the dependecies are solved. So the most of the time you will keep the testing package, Sometimes the package from Sid have resolved dependencies with Testing, in this case it will install it.

esaym 10-20-2008 07:38 AM

No that is not the way it works. Depending on the priority level that you have the repo set at, a package installed from unstable into testing might not ever get updated.

Here are some docs
http://jaqque.sbih.org/kplug/apt-pinning.html
http://wiki.debian.org/AptPinning

The best way to test is to make sure your system is up to date before you start messing with pinning repos. Then after you pin a repo, check and make sure that you don't have any new updates for your system. If you do that means you need more space between your priority levels.

Here is what I have and it works:
user@user:~$ cat /etc/apt/preferences
Package: *
Pin: release a=testing
Pin-Priority: 900

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


All times are GMT -5. The time now is 06:42 PM.