Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Discussion & Documentation Documentation, Tips & Tricks
  • Search

HOWTO: Download ISOs faster and error free with metalink

Unofficial documentation for various parts of Gentoo Linux. Note: This is not a support forum.
Post Reply
Advanced search
8 posts • Page 1 of 1
Author
Message
twanj
n00b
n00b
Posts: 6
Joined: Sun Jul 08, 2007 12:04 am

HOWTO: Download ISOs faster and error free with metalink

  • Quote

Post by twanj » Sun Jul 08, 2007 12:16 am

metalinks are an XML format listing mirrors, p2p locations, checksums, & other stuff in one file used by download managers.

downloads are usually quite fast, and if aria2 is used, they will be error free and repairable.

1. Install aria2
2. http://www.metalinker.org/samples.html#isos has a large number of ISOs, including Gentoo
3. Download the Metalink for the ISO you want with 'aria2c URLtoMetalink'

if you download the .metalink file, you can use it locally with 'aria2c -M metalink'

there's a patch for Bouncer if gentoo wanted to use this for ISO downloads. different sources can be given priority, and downloads can be filtered by location and other things.

here's an example of what one looks like, minus the chunk checksums used for repairs.

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<metalink version="3.0" generator="Metalink Editor version 0.4.1" xmlns="http://www.metalinker.org/">
  <publisher>
    <name>Gentoo</name>
    <url>http://www.gentoo.org/</url>
  </publisher>
  <version>2007.0</version>
  <files>
    <file name="livecd-i686-installer-2007.0.iso">
      <size>734308352</size>
      <os>Linux-x86</os>
      <verification>
        <hash type="md5">7a21c2f09edd51612fb2cd7984dd3577</hash>
        <hash type="sha1">d876060d2b322b9afffdcd81da2ec8433e489d93</hash>
      </verification>
      <resources>
        <url type="http" location="us" preference="100">http://distro.ibiblio.org/pub/linux/distributions/gentoo/releases/x86/2007.0/livecd/livecd-i686-installer-2007.0.iso</url>
        <url type="http" location="kr" preference="100">http://ftp.gentoo.or.kr/releases/x86/2007.0/livecd/livecd-i686-installer-2007.0.iso</url>
        <url type="http" location="tw" preference="100">http://ftp.isu.edu.tw/pub/Linux/Gentoo/releases/x86/2007.0/livecd/livecd-i686-installer-2007.0.iso</url>
        <url type="http" location="ro" preference="100">http://ftp.roedu.net/pub/mirrors/gentoo.org/releases/x86/2007.0/livecd/livecd-i686-installer-2007.0.iso</url>
        <url type="http" location="uk" preference="100">http://gentoo.blueyonder.co.uk/releases/x86/2007.0/livecd/livecd-i686-installer-2007.0.iso</url>
        <url type="http" location="jp" preference="100">http://gentoo.gg3.net/releases/x86/2007.0/livecd/livecd-i686-installer-2007.0.iso</url>
        <url type="http" location="ca" preference="100">http://gentoo.mirrored.ca/releases/x86/2007.0/livecd/livecd-i686-installer-2007.0.iso</url>
        <url type="http" location="us" preference="100">http://gentoo.mirrors.pair.com/releases/x86/2007.0/livecd/livecd-i686-installer-2007.0.iso</url>
        <url type="http" preference="100">http://gentoo.scphost.com/releases/x86/2007.0/livecd/livecd-i686-installer-2007.0.iso</url>
        <url type="http" location="de" preference="100">http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/releases/x86/2007.0/livecd/livecd-i686-installer-2007.0.iso</url>
        <url type="http" location="jp" preference="100">http://mirror.gentoo.gr.jp/releases/x86/2007.0/livecd/livecd-i686-installer-2007.0.iso</url>
        <url type="http" location="it" preference="100">http://www.die.unipd.it/pub/Linux/distributions/gentoo-sources/releases/x86/2007.0/livecd/livecd-i686-installer-2007.0.iso</url>
        <url type="http" location="us" preference="100">http://www.gtlib.gatech.edu/pub/gentoo/releases/x86/2007.0/livecd/livecd-i686-installer-2007.0.iso</url>
        <url type="http" location="br" preference="100">http://www.las.ic.unicamp.br/pub/gentoo/releases/x86/2007.0/livecd/livecd-i686-installer-2007.0.iso</url>
        <url type="http" location="uk" preference="100">http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/releases/x86/2007.0/livecd/livecd-i686-installer-2007.0.iso</url>
      </resources>
    </file>
  </files>
</metalink>
Top
twanj
n00b
n00b
Posts: 6
Joined: Sun Jul 08, 2007 12:04 am

  • Quote

Post by twanj » Mon Jul 09, 2007 11:27 pm

DownThemAll! 1.0 Beta now supports metalink downloads from mirrors and full file checksum verification.
Top
steveL
Watchman
Watchman
Posts: 5153
Joined: Wed Sep 13, 2006 1:18 pm
Location: The Peanut Gallery

  • Quote

Post by steveL » Tue Jul 10, 2007 11:12 am

Looks interesting. There's no DTD mentioned in your sample file. That means it's not valid XML aiui. Do you believe this file-format is necessary, or could you see it being done with say an ini-style format? (or anythng but XML ;)
Top
twanj
n00b
n00b
Posts: 6
Joined: Sun Jul 08, 2007 12:04 am

  • Quote

Post by twanj » Tue Jul 10, 2007 2:20 pm

A schema is at http://www.metalinker.org/schema/3.0/metalink.xsd & spec/other info at http://www.metalinker.org/

What do you have against XML? :)
Top
steveL
Watchman
Watchman
Posts: 5153
Joined: Wed Sep 13, 2006 1:18 pm
Location: The Peanut Gallery

  • Quote

Post by steveL » Sun Jul 15, 2007 5:15 pm

twanj wrote:A schema is at http://www.metalinker.org/schema/3.0/metalink.xsd & spec/other info at http://www.metalinker.org/
What do you have against XML? :)
http://modeemi.fi/~tuomov/b////archives ... T18_33_42/
http://modeemi.fi/~tuomov/b///archives/ ... T11_58_29/
..pretty much explain it. I like Gentoo GuideXML for instance as it is simple and clean, but usually XML files are way too verbose/ content-light for my liking. I blame MS for making it so bloated in their usage of it; it's ended up being something difficult for people to edit.

Most of all i like rst (as a format) and TeX for complex stuff. For configuration I prefer simple plaintext, although I haven't yet seen the one true format (can't find the url for that one but i don't really like it either) ;)
Top
twanj
n00b
n00b
Posts: 6
Joined: Sun Jul 08, 2007 12:04 am

  • Quote

Post by twanj » Fri Jul 20, 2007 12:19 am

Metalink is aimed at browsers and other programs that already support XML. XML seems to fit fine with what it's doing, it's been working fine for years, so I doubt it will change soon unless there were huge benefits for doing so. :wink:
Top
twanj
n00b
n00b
Posts: 6
Joined: Sun Jul 08, 2007 12:04 am

  • Quote

Post by twanj » Wed Jan 16, 2008 10:07 pm

About 20 apps now support downloading w/ metalinks now, including KGet in KDE 4.0, the DTA Firefox extension, aria2 (CLI), wxDownload Fast, GetRight, Net Transport, FDM, Orbit, Retriever, and Speed Download.

There are a bunch of tools for automating the creation of metalinks too.
Top
kernelOfTruth
Watchman
Watchman
User avatar
Posts: 6111
Joined: Tue Dec 20, 2005 10:34 pm
Location: Vienna, Austria; Germany; hello world :)
Contact:
Contact kernelOfTruth
Website

  • Quote

Post by kernelOfTruth » Thu Jan 24, 2008 5:06 pm

*subscribes*

thanks !
I need to try this the next time I download a livecd
https://github.com/kernelOfTruth/ZFS-fo ... scCD-4.9.0
https://github.com/kernelOfTruth/pulsea ... zer-ladspa

Hardcore Gentoo Linux user since 2004 :D
Top
Post Reply

8 posts • Page 1 of 1

Return to “Documentation, Tips & Tricks”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Authors
Gentoo is a trademark of the Gentoo Foundation, Inc. and of Förderverein Gentoo e.V.
The contents of this document, unless otherwise expressly stated, are licensed under the CC-BY-SA-4.0 license.
The Gentoo Name and Logo Usage Guidelines apply.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy