LinuxQuestions.org

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

aquaboot 10-13-2008 10:15 PM

apt pinning
 
Hello,

I'm new to apt pinning and have a question. I've been reading online but am confused. I'm running testing release but would like to be able to grab individual programs occasionally from unstable or experimental. My question is this (please see my /etc/apt/preferences file below): If I run aptitude upgrade, will it upgrade from testing and then all programs in unstable and experimental that are not in testing? The only time I want aptitude to bring anything over from the other two repositories is when I manually request it from the command line, for example: aptitude install iceweasel/unstable. Here is my /etc/apt/preferences file:

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

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

Package: *
Pin: release a=experimental
Pin=Priority: 550

I of course have unstable and experimental repros in my sources.list file.

Many thanks,

ab

David the H. 10-14-2008 04:25 AM

I'm not an expert on this, especially with regards to aptitude (which I don't use), but it's my impression that you can't use the pin-priority on it's own to separate the behavior of the upgrade command from the behavior of individual package installation. All the priority does is determine whether the package gets installed or not at the current time.

If you want to ensure that a package only gets upgraded when you want it to, I think you should simply raise the pin priority to 1000. Then when you're ready to update it, temporarily change the priority or comment it out.

If there's some other option in apt-preferences or apt.conf or something that can do what you want, I hope someone will correct me.

craigevil 10-14-2008 04:44 AM

Safest thing to do would be to comment out unstable and exp before doing upgrade, although unless told to install from those aptitude will stay with testing.

You can be sure of that if you have /etc/apt/apt.conf APT::Default-Release "testing";


All times are GMT -5. The time now is 10:32 PM.