epcim
10/20/2015 - 4:05 PM

metalink.howto.md

metaling CLI usage

http://www.osresources.com/3_18_en.html

First we create the mirror list.

wget -O - 'http://www.ubuntu.com/products/GetUbuntu/download?action=show&redirect=download' | \
egrep -o '(http|ftp)://[^"]+ubuntu-6.10-desktop-i386.iso' | \
sed -e 's/^/ % /;s/ubuntu-6.10-desktop-i386.iso//' %gt; mirror.lst

To generate a Metalink, we now execute:

metalink --somedigests ubuntu-6.10-desktop-i386.iso < mirror.lst > ubuntu-6.10-desktop-i386.iso.metalink

metalink --somedigests --headerfile head.txt --desc 'Ubuntu Linux 6.10 Desktop Live CD for i386 arch' \
ubuntu-6.10-desktop-i386.iso < mirror.lst > ubuntu-6.10-desktop-i386.iso.metalink