metalink(1) commandline metalink generator


metalink [input files] [ < mirror list]


This manual page documents briefly the metalink command.

This manual page was written for the Debian distribution because the original program does not have a manual page.

metalink allows you to generate metalinks from a list of mirrors and a collection of files. The files are hashed and the resulting metalink is generated on the stdout.


These programs follow the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included below.

-h --help
Produce a help message
Print out the name and version.
Generate metalink from md5sum file(s).
--addpath path
Append a path to the mirrors ('/' is not checked)
--headerfile arg
Include file after the root element declaration.
Don't read mirrors from stdin
List hashes only (implies nomirrors)
--desc arg
Add metalink description
-d arg
Include given digest
Include: md5 sha1
Include: md5 sha1 ed2k
Include all possible digests

Supported algorithms are (-d options): md4 md5 sha1 sha256 sha384 sha512 rmd160 tiger crc32 ed2k gnunet sha1pieces

Mirror lists are single line definitions according to: [location [preference] [type] % ] mirror base url

EXAMPLES as a mirror: echo | metalink -d md5 -d sha1 * as a mirror with preference and location: echo us 10 % | metalink -d md5 -d sha1 * as a mirror with preference only: echo 0 10 % | metalink -d md5 *


This manual page was written by A. Bram Neijt [email protected] for the Debian system (but may be used by others). Permission is granted to copy, distribute and/or modify this document under the terms of the GNU General Public License, Version 2 any later version published by the Free Software Foundation.

On Debian systems, the complete text of the GNU General Public License can be found in /usr/share/common-licenses/GPL.