Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


  Search this Thread
Old 10-13-2008, 10:15 PM   #1
Registered: May 2005
Location: Berkeley, CA.
Distribution: debain freebsd
Posts: 482

Rep: Reputation: 31
apt pinning


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,


Last edited by aquaboot; 10-13-2008 at 10:55 PM.
Old 10-14-2008, 04:25 AM   #2
David the H.
Bash Guru
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1954Reputation: 1954Reputation: 1954Reputation: 1954Reputation: 1954Reputation: 1954Reputation: 1954Reputation: 1954Reputation: 1954Reputation: 1954Reputation: 1954
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.
Old 10-14-2008, 04:44 AM   #3
Senior Member
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,734
Blog Entries: 12

Rep: Reputation: 459Reputation: 459Reputation: 459Reputation: 459Reputation: 459
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";


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Apt-pinning question Tortanick Debian 3 06-02-2007 10:16 AM
apt-pinning question nx5000 Debian 3 04-11-2007 06:48 PM
APT Pinning not working as expected kushalkoolwal Debian 10 03-13-2006 09:54 PM
apt pinning question divukman Debian 3 12-01-2005 11:49 AM
apt-pinning h/w Debian 6 02-25-2004 12:57 PM

All times are GMT -5. The time now is 10:42 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration