FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.

» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

LinkBack Thread Tools
Old 07-18-2008, 06:38 PM
Andrei Popescu
Default APT Mirror Priority

On Fri,18.Jul.08, 22:25:40, Ritesh Raj Sarraf wrote:
> Hi,
> AFAIK, there's no way to set priority on the mirrors that are defined in the
> sources.list file.
> Let us assume that we have two mirrors listed in the sources.list file.
> Eg: a local apt-proxy and ftp.us.debian.org
> It is obvious that apt-proxy is faster than f.u.d.o.
> What I'd want is that apt first tries to first try m.k.o and if not found
> there, or if the host doesn't respond, moves to f.u.d.o to get the package.
> Is there any pinning setting that we can set on the mirrors?

According to sources.list(5) the order counts.

,----[ sources.list(5) ]
| It is important to list sources in order of preference, with the most
| preferred source listed first. Typically this will result in sorting by
| speed from fastest to slowest (CD-ROM followed by hosts on a local
| network, followed by distant Internet hosts, for example).

> Another question.
> Does apt support threaded download? If I have multiple mirrors, can apt be
> able to download multiple packages simultaneously from multiple mirrors at
> the same time?
> Currently I see that happening only with security.debian.org and one of the
> many mirrors listed in sources.list

AFAICT, even if apt has several sources for the same set of packages it
will use only one mirror, probably in the order specified in
sources.list if the manpage is correct.

If your mirror is to slow to fill up your bandwidth maybe you should
look for another. apt-spy can help with this.

If you can't explain it simply, you don't understand it well enough.
(Albert Einstein)

Thread Tools

All times are GMT. The time now is 03:13 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org