LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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-23-2008, 07:26 PM   #1
parent's_basement
Member
 
Registered: Dec 2006
Posts: 111

Rep: Reputation: 16
apt pinning /etc/apt/apt.conf


Hello,

I think I'm getting a better idea of how apt pinning works. Something that I'm still confused about though is the file /etc/apt/apt.conf

First of all, I had to create the file myself; why wasn't it already there?

Second, I've been reading about including "target release" in apt.conf. Here is an example I found on line:

APT:: Default-Release "stable";
APT:: Cache-Limit "25165824";

What exactly is specifying the default release doing for me?

Many Thanks,

pb

Last edited by parent's_basement; 10-23-2008 at 07:34 PM.
 
Old 10-23-2008, 08:49 PM   #2
j.todd
Member
 
Registered: Feb 2008
Location: Michigan
Distribution: Debian GNU/Linux Unstable
Posts: 144

Rep: Reputation: 16
Just create the file yourself, just do
Code:
# touch apt.conf
while in /etc/apt/ . Specifying the default release is for running a mixed system, usually testing/unstable or testing/unstable/experimental. It's generally a bad idea to mix stable and anything, the DD's did a lot to make stable stable, and adding anything from testing or unstable or especially experimental defeats the purpose. If you want to use a package from testin/unstable, use backports or compile it yourself.
 
Old 10-23-2008, 11:19 PM   #3
parent's_basement
Member
 
Registered: Dec 2006
Posts: 111

Original Poster
Rep: Reputation: 16
Thanks for the reply. I did in fact create apt.conf when I saw that it wasn't there. ;-) My preference is to run testing and pin sid. But again, I'm not sure what "target release" in apt.conf does. Thoughts/insights?

Thanks,

pb
 
Old 10-24-2008, 03:03 PM   #4
j.todd
Member
 
Registered: Feb 2008
Location: Michigan
Distribution: Debian GNU/Linux Unstable
Posts: 144

Rep: Reputation: 16
Do you mean default release, not target release? If so default release makes sure you don't get updates from sid if you're running testing/unstable.
 
Old 10-26-2008, 04:23 PM   #5
parent's_basement
Member
 
Registered: Dec 2006
Posts: 111

Original Poster
Rep: Reputation: 16
Yes, thanks. I did mean default release. If my default install is testing but I have several packages installed from the unstable repository, how can I update those unstable packages pulling from the unstable repository all at once via aptitude?

Thanks,

pb
 
Old 10-26-2008, 06:50 PM   #6
j.todd
Member
 
Registered: Feb 2008
Location: Michigan
Distribution: Debian GNU/Linux Unstable
Posts: 144

Rep: Reputation: 16
I think this would be fine, it would upgrade the package to the newest version from unstable (came to this conclusion from apt_prefences man page):
Code:
Package: Package name
Pin: a=unstable
Pin-Priority: 500

Last edited by j.todd; 10-26-2008 at 09:25 PM.
 
  


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
How to set up proxy in Apt-Get's apt.conf? rykel Fedora 9 10-09-2013 04:24 AM
APT pinning question parent's_basement Debian 2 10-20-2008 08:38 AM
apt pinning aquaboot Debian 2 10-14-2008 04:44 AM
i can't find the file /etc/apt/apt.conf. lsj Linux - Newbie 1 05-21-2004 03:24 AM
apt-pinning h/w Debian 6 02-25-2004 12:57 PM


All times are GMT -5. The time now is 01:37 PM.

Main Menu
Advertisement
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