PDA

View Full Version : [ubuntu] apt-fast??



marine63
July 23rd, 2008, 08:45 AM
i've recently came across this apt-fast thing
http://www.mattparnell.com/projects/apt-fast-and-axel-roughly-26x-faster-apt-get-installations-and-upgrades.html
and I was wonder how it works and if it works at all...

jordanmthomas
July 23rd, 2008, 08:50 AM
It looks like it just replaces wget with a download manager that downloads in multiple chunks?

It asks apt what it would have downloaded, then downloads them with another program, then tells apt to install. This time, the files apt needs are already in its cache, so it doesn't need to download anything.

I suppose this would be faster, but it is harder on the repositories hosting the debs. They are probably throttled per connection, and it's probably for a reason

forger
July 23rd, 2008, 09:12 AM
they could use multiple servers for it.. then it wouldn't be so hard on one server :)
e.g.

axel ftp://ftp.{be,nl,uk,de}.kernel.org/pub/linux/kernel/v2.4/linux-2.4.17.tar.bz2


something like a regular expression substitution (with sed?):

s/(?:[a-zA-Z]{2}\.)?archive\.ubuntu\.com/\{nl,se,uk,de,us,fr\}\.archive\.ubuntu\.com/