Using Metalinks

Using Metalinks


Downloads can be much faster, more efficient, and simplified by using Metalinks, a new system which automates segmented downloading and checksum verification.

What is Metalink?

Metalink is an XML format for downloads that lists mirrors, Peer-to-peer (P2P) links, and checksums. Metalink was designed to make typically advanced downloading features easier for everyone to use. Previously, gathering mirrors and manually adding them to download managers was time consuming and frustrating. Having access to more mirrors increases reliability, and speed, as multiple mirrors can be downloaded from at once. Using P2P lessens bandwidth costs for distributors such as OpenOffice.org and mirrors. Unfortunately, P2P can not be used in all situations because it is sometimes blocked (by offices, universities, and ISPs), so it is helpful to have regular mirrors to fall back on in these cases.

I have a cable internet connection with a max download speed of 800k a second. Most of my download speeds are around 200k/sec though. Why? One server is feeding many people, and that’s all it can serve up. But, it's still pretty fast, and fine for most downloads. There's not much difference with waiting 1 minute or 4 minutes. If you want to get something bigger though, you start to notice the difference. Instead of taking 14 minutes to download an ISO, it can take 2 hours or longer. You don't really know how fast or reliable a server is until you start downloading from it.

Using a download manager, you can download a segment of each file from multiple servers at the same time. The segments are then added together when they have all finished. This lets you fully use your maximum download speed. (Download managers have other features like pausing and resuming downloads which are also helpful).

Take a look at this page (figure 1). Similar to many download pages, it lists a bunch of mirrors:

Figure 1: Arch Linux mirror listFigure 1: Arch Linux mirror list

This lists the mirrors in general. A Metalink will point to a specific file(s) on all the mirrors. It can list priority and location of the mirrors, so it's easy to download from many of them at once, along with P2P like BitTorrent, ed2k, and magnet links.

Metalinks can be found at http://www.metalinker.org and http://metalink.packages.ro/ as well as directly from OpenOffice.org, Arch Linux, PC-BSD, DesktopBSD, blag linux, StartCom Linux, Ubuntu Christian Edition, Berry Linux, redWall Firewall, and others.

Metalink Clients

What is wxDownload Fast?

wxDownload Fast is a multi-platform open source download manager (GUI), similar to other download managers and Metalink clients: GetRight on Windows and Speed Download on Mac OS X. wxDownload Fast is available on Windows and Linux. Like most download managers, it supports resuming and segmented downloading.

Figure 2: wxDownload Fast GUI Metalink clientFigure 2: wxDownload Fast GUI Metalink client

Installing and running wxDownload Fast

wxDownload Fast can be compiled from source. Binaries are available for Windows, Debian, and Ubuntu. wxDownload Fast can be integrated with Firefox via FlashGot.

Using wxDownload Fast: an example

If you use wxDownload Fast with FlashGot, you can just click on a Metalink. Otherwise, you will have to copy the link, click New in wxDownload Fast, and then click OK to start downloading. wxDownload Fast will automatically process the Metalink and start downloading from the mirrors. Once the download has finished, it will verify the checksum automatically. You can let wxDownload Fast handle all of your downloads, not just Metalinks, so it’s pretty useful.

What is aria2?

aria2 is an open source command line download utility with resuming and segmented downloading capabilities. It is similar to curl and wget, but not as general purpose. It also supports BitTorrent and uses low amounts of system resources. It’s great for downloading regular files, as well as Metalinks and torrents.

Figure 3: aria2 command line Metalink clientFigure 3: aria2 command line Metalink client

Installing and running aria2

aria2 can be compiled from source. Binaries are available for a variety of platforms. It is available from the official Debian repository. For Ubuntu, you can download a package from http://www.raphink.net/ubuntu/ or adddeb http://raphink.net/ubuntu/ubuntu edgy main or deb http://raphink.net/ubuntu/ubuntu dapper main to your sources.list, depending on whether you are running Ubuntu 6.06 or 6.10.

Using aria2: an example

aria2 usage is very simple. At the command line, you type:

aria2c http://www.exampleURL.com/file.metalink

More advanced uses of aria2

Metalink also allows files to be designated for a certain language or Operating System (OS). Some download pages are a bit confusing for users. You have to select OS, language, and mirror location. Metalink eliminates the need to manually select OS, language, or location as these settings can be saved by the download application and reused for every download. Or in the case of aria2, the correct settings can be selected with command line options such as:

aria2c URL --metalink-language=LANGUAGE

Where LANGUAGE is en-US, de, it, fr, etc.

aria2c URL --metalink-os=OS

Where OS is Windows-x86, Linux-x86, Solaris-x86, MacOSX-PPC, etc.

Take this Firefox 2.0 download page (figure 4) for example:

Figure 4: Firefox download pageFigure 4: Firefox download page

It lists 41 languages and 3 OS choices for each, for a total of 118 download links (5 are missing). All of these could be condensed into ONE Metalink and also contain all the mirrors as well.

Here's how it works: One link, one click downloads for everyone. For instance, a Metalink for Firefox can list every OS and language combination and their mirror locations and checksums. Someone in Brazil that speaks French and uses Linux can click on the link and get the French Linux version from the local Brazilian mirrors. Someone in Japan that speaks English on Mac OS X can click that same link and get the English OS X version from the local Japanese mirrors. Once the download finishes, the checksum is automatically verified, without user interaction.

Conclusions

As you can see, Metalink simplifies as many things about the download process as possible. From gathering mirrors, verifying checksums, to making download pages less cluttered and confusing, Metalink automates as much as possible. Look into downloading with Metalinks for a faster and simpler download experience.

Category: 
License: 

Comments

Mauro Bieg's picture
Submitted by Mauro Bieg on

Sound like a great technique, never heard of it before, thanks!

I hope it will soon be integrated into Firefox as default and by as many websites as possibel. Otherwise most of the users (the ones that need simplification most) won't be able to use Metalinks.

Anonymous visitor's picture
Submitted by Anonymous visitor (not verified) on

Most downloads can now be done with a Firefox plugin which will generate a Metalink through Metamirrors. You can just right-click on most download links (like Unbuntu.org's images) and then simply let that site generate a metalink for you. The only thing the publishers have to do is post the file's hash information on their mirrors.

Anthony L. Bryan's picture

aria2 is now available for Debian, Arch, Ubuntu Feisty, Fedora, and Gentoo. apt-get install aria2, yum install aria2, etc

Anonymous visitor's picture
Submitted by Anonymous visitor (not verified) on

If your country's official mirror gives you that crappy speed, that's a very bad mirror and you should change to a faster one! I never get under 1MB/s which is about my capacity at home. Most mirrors are at large companies and universitys with plenty bandwidth.

Downloading from one source is more efficient than downloading from many (less IP overhead, less fragmentation, less complex). Most large projects such as Fedora, Debian, Mozilla and OOo has very well connected mirrors. I think it is a better idea to kick the bad mirrors out instead of making these complex p2p things.

Anonymous visitor's picture
Submitted by Anonymous visitor (not verified) on

Hello!
I want to use METALINK with my GetRight and Flashgot (for Firefox) downloading -- BUT although I have followed Metalink instructions and downloaded THREE Metalink-related programs (Abiword, Elephant Dream, and Adobe8 Reader)I am hopelessly unable to get GETRIGHT/Flashgot to recognize or work with Metalink. Everything still just downloads the old way. In fact, although Abiword and Adobe8 were successfully downloaded, Metalink doesn't seem to have "accompanied" those programs.
Perhaps there is something in my GETRIGHT configuration which hinders the implementation of Metalink?? -- at any rate, I am too technically dumb to know what to do myself.

HELP, please!
Carolina

Most forwarded

Interview with Dave Mohyla, of DTIDATA

Dave Mohyla is the president and founder of dtidata.com, a hard drive recovery facility based in Tampa, Florida.

TM: Where are you based? What does your company do?
DTI Data recovery is based in South Pasadena, Florida which is a suburb of Tampa. We have been here for over 10 years. We operate a bio-metrically secured class 100 clean room where we perform hard drive recovery on all types of hard disks, from laptop hard drives to multi drive RAID systems.

Anybody up to writing good directory software?

Since the very beginning, directories (of any kind) have had a very central role in the internet. (I have recently grown fond of Free Web Directory. Even Slashdot can be considered a directory: a collection of great news and invaluable user-generated comments. As far as software is concerned, doing a quick search on Google about software directories will return the free (as in freedom) software directories like Savannah, SourceForge, Freshmeat and so on, followed by shareware and freeware sites such as FileBuzz, PCWin Download Center and All Freeware (great if you're looking for shareware and freeware, but definitely less comprehensive than their free-as-in-freedom counterparts).

Interview with Mark Shuttleworth

Mark Shuttleworth is the founder of Thawte, the first Certification Authority to sell public SSL certificates. After selling Thawte to Verisign, Mark moved on to training as an astronaut in Russia and visiting space. Once he got back he founded Ubuntu, the leading GNU/Linux distribution. He agreed on releasing a quick interview to Free Software Magazine.

Is better education the key to finding better software?

I read David Jonathon's article Anybody Up To Writing Good Directory Software? the other day, which got me thinking about software directories in general. As David mentioned, many of the software directories one finds when doing a quick google search are free as in beer, not as in freedom. But what interests me is the software directories that already exist, providing a combination of both free as in beer software, and open source software. Sites such as Freeware Downloads and Shareware Download don't advertise themselves as providing free as in liberty software, but each of them have a good selection of open source software available... if you know where to look.

Most emailed

Free Open Document label templates

If you’ve ever spent hours at work doing mailings, cursed your printer for printing outside the lines on your labels, or moaned “There has got to be a better way to do this,” here’s the solution you’ve been looking for. Working smarter, not harder! Worldlabel.com, a manufacture of labels offers Open Office / Libre Office labels templates for downloading in ODF format which will save you time, effort, and (if you want) make really cool-looking labels

Creating a user-centric site in Drupal

A little while ago, while talking in the #drupal mailing list, I showed my latest creation to one of the core developers there. His reaction was "Wow, I am always surprised what people use Drupal for". His surprise is somehow justified: I did create a site for a bunch of entertainers in Perth, a company set to use Drupal to take over the world with Entertainers.Biz.

Update: since writing this article, I have updated the system so that the whole booking process happens online. I will update the article accordingly!

So, why, why do people and companies develop free software?

More and more people are discovering free software. Many people only do so after weeks, or even months, of using it. I wonder, for example, how many Firefox users actually know how free Firefox really is—many of them realise that you can get it for free, but find it hard to believe that anybody can modify it and even redistribute it legally.

When the discovery is made, the first instinct is to ask: why do they do it? Programming is hard work. Even though most (if not all) programmers are driven by their higher-than-normal IQs and their amazing passion for solving problems, it’s still hard to understand why so many of them would donate so much of their time to creating something that they can’t really show off to anybody but their colleagues or geek friends.

Sure, anybody can buy laptops, and just program. No need to get a full-on lab or spend thousands of dollars in equipment. But... is that the full story?

Fun articles

Santa Claus - the most successful open source project

It dawned on me the other day, as I was shopping for the dozens of gifts it seems I have to buy every December, that Santa Claus is the most successful open source project in history. (Bridget @ Illiterarty would agree with that). Santa Claus is essentially a marketing development that is embodied by everyone who stuffs a sock, gives a gift, hosts a dinner or wishes Merry Christmas over the holiday season.

Most emailed

Editorial

When I first started thinking about Free Software Magazine, I was feeling enthusiastic about the dream. I had Dave, Gianluca, and Alan willing to help me, I had established members of the free software community willing to help me out, I had writers volunteering their time and energy for free, and I had a generous offer from OpenHosting for servers, all before I'd proved myself. There was a sense of excitement in the air, and I thought maybe, just maybe, I could make this work.

Free Software Magazine uses Apollo project management software and CRM for its everyday activities!