LinuxQuestions.org

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

parent's_basement 10-23-2008 06:26 PM

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

j.todd 10-23-2008 07:49 PM

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.

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

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

j.todd 10-24-2008 02:03 PM

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.

parent's_basement 10-26-2008 03:23 PM

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

j.todd 10-26-2008 05:50 PM

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



All times are GMT -5. The time now is 09:58 PM.