LinuxQuestions.org
Go Job Hunting at the LQ Job Marketplace
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 02-19-2004, 09:56 PM   #1
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Rep: Reputation: 45
apt-pinning


if anyone is interested, i found this and thought i'll post here - http://jaqque.sbih.org/kplug/apt-pinning.html

might be helpful to people.
 
Old 02-21-2004, 07:11 AM   #2
llamakc
Member
 
Registered: Nov 2003
Distribution: Debian & Ubuntu
Posts: 402

Rep: Reputation: 31
Thanks h/w. I often end up pinning and always go on a hunt for the docs/how-tos. One thing I learned is NOT to have a blank line at the top of /etc/apt/preferences...
 
Old 02-22-2004, 05:48 PM   #3
dudous
LQ Newbie
 
Registered: Feb 2004
Location: Vitória/ES - Brazil
Distribution: Debian
Posts: 28

Rep: Reputation: 15
Great link ! Thanks for the tip!
By the way, i have a doubt about the sources.list functioning ...
Suppose i have a sources.list like this (note that stable is pointing to a brazilian mirror) and the same preferences from the article:

#Stable
deb http://ftp.br.debian.org/debian stable main non-free contrib
deb http://non-us.br.debian.org/debian-non-US stable/non-US main contrib non-free

#Testing
deb http://ftp.us.debian.org/debian testing main non-free contrib
deb http://non-us.debian.org/debian-non-US testing/non-US main contrib non-free

#Unstable
deb http://ftp.us.debian.org/debian unstable main non-free contrib
deb http://non-us.debian.org/debian-non-US unstable/non-US main contrib non-free

He sad that if a package can be picked from stable it will be, otherwise it will pick from testing or after it, by unstable right ?
But if the package is present in stable but at the moment the server is down ?
It will try to pick from the others (testing and unstable) ?
I'm asking this because if the package is present in stable but server is down, my desire will by not to pick from the others. Maybe i could try another time...

Do i made myself clear ?
 
Old 02-22-2004, 10:33 PM   #4
redcane
Member
 
Registered: Aug 2003
Posts: 31

Rep: Reputation: 15
It won't try another server if the brazillian mirror is down, unless that server has the same (stable) package. If a server is down when you do an apt-get update, it will complain of missing indexes. Once it has the indexes it knows which files (and which versions of the files) to get. So if the preferences leave it getting stable files it will only attempt to get those files (it may try more than one server for the stable files though).
 
Old 02-23-2004, 08:23 AM   #5
dudous
LQ Newbie
 
Registered: Feb 2004
Location: Vitória/ES - Brazil
Distribution: Debian
Posts: 28

Rep: Reputation: 15
Great ! That´s exactly what i want !
Thanks for the enlightenment.
Have you learned this but experience or with some documentation ?
I dind´t find yet, a documentation with this kind of details.
 
Old 02-25-2004, 11:55 AM   #6
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Original Poster
Rep: Reputation: 45
http://www.debian.org/doc/manuals/ap...pt-get.en.html (look at 3.10 here)

and, surrpise surprise - man 5 apt_preferences

i haven't yet tried apt-pinning. but will sometime soon (when i do a full re-install of my system.)
 
Old 02-25-2004, 11:57 AM   #7
h/w
Senior Member
 
Registered: Mar 2003
Location: New York, NY
Distribution: Debian Testing
Posts: 1,286

Original Poster
Rep: Reputation: 45
Quote:
Originally posted by llamakc
Thanks h/w. I often end up pinning and always go on a hunt for the docs/how-tos. One thing I learned is NOT to have a blank line at the top of /etc/apt/preferences...
hey llamakc - what happens with the blank line? (one would think a system like apt doesn't/shouldn't get affected with such things, huh? )
thanks for your tip too.
 
  


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 divukman Debian 3 12-01-2005 10:49 AM
Apt-get build-dep and Pinning McCloud Debian 2 09-07-2005 05:36 AM
pinning packages ptawe Debian 1 07-29-2005 09:35 AM
Pinning syntax? sard Debian 2 03-02-2005 03:18 AM
Partial upgrade with APT pinning (debian)? MaulingMonkey Linux - Software 1 01-21-2005 06:11 AM


All times are GMT -5. The time now is 04:02 AM.

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