LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

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

Rep: Reputation: 31
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

Last edited by aquaboot; 10-13-2008 at 09:55 PM.
 
Old 10-14-2008, 03: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: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947Reputation: 1947
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, 03:44 AM   #3
craigevil
Senior Member
 
Registered: Apr 2005
Location: OZ
Distribution: Debian Sid
Posts: 4,732
Blog Entries: 12

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


Reply


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 09:16 AM
apt-pinning question nx5000 Debian 3 04-11-2007 05:48 PM
APT Pinning not working as expected kushalkoolwal Debian 10 03-13-2006 08:54 PM
apt pinning question divukman Debian 3 12-01-2005 10:49 AM
apt-pinning h/w Debian 6 02-25-2004 11:57 AM


All times are GMT -5. The time now is 07:22 PM.

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