opensubscriber
   Find in this group all groups
 
Unknown more information…

c : cwe-lug@lists.firepipe.net 22 February 2007 • 6:08AM -0500

Re: [cwe-lug] single vs multi-line sources.list entries
by Robert Citek

REPLY TO AUTHOR
 
REPLY TO GROUP




David Dooling wrote:
> On Wed, Feb 21, 2007 at 03:32:29PM -0600, Robert Citek wrote:
>> Is there any advantage/disadvantage to having repository components
>> in one line or several lines in a sources.list file?
>
> When downloading files, apt parallelizes by opening one conncetion
> per server.  If it considers each line in sources.list a different
> server, apt would connect four times to archive.ubuntu.com.  This may
> be considerd abuse by the folks at Ubuntu (although they probably
> would not even notice).  If apt does some sort of string comparison
> to determine unique hosts, then there should no difference.

According to the man page, apt is doing some collapsing:

<quote>
APT will sort  the  URI  list after  it has generated a complete set
internally, and will collapse multiple references to the same Internet
host, for instance, into a single connection, so that it does not
inefficiently establish an FTP connection, close it, do something else,
and then re-establish a connection to that same host.
</quote>

But then man pages are like comments in code: occasionally out of sync
with reality.  Which is why I was wondering if anyone knew of any
gotchas to using multiple lines.

Regards,
- Robert


_______________________________________________
CWE-LUG mailing list
CWE-LUG@list...
http://www.cwelug.org/
http://www.cwelug.org/archives/
http://www.cwelug.org/mailinglist/

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.