I want to download an Ubuntu ISO, preferably over bittorrent, and verify its integrity.
Currently, the following steps are required:
- start web browser, go to ubuntu.com, find download link
- find gpg signature for the checksums
- get the gpg key to check gpg signature of the checksums
- wait until download finished
- gpg verifiy
- checksum verification
Isn't there a simpler way? Just like
- apt-get install 12.04-64bit-ubuntu-iso
- apt-get install 12.04-32bit-server-iso
- etc.?
Of course, apt-get (or whatever it would be called) should download over bittorrent to remove load from the servers.
If it doesn't exist, it should probable post that at ubuntu brainstorm? Is there already such a tool? I wanted to ask before posting to brainstorm.
aria2c and metalinks let you do a one-step, verified ISO download using the bittorrent protocol
It is extremely easy to do what you want using the
aria2
CLI download manager and the ISO metalinks available on the official download page, namely:Steps:
Install aria2 with
sudo apt-get install aria2c
Open the official download page for the release you want, e.g. for Precise
ubuntu-12.04-desktop-i386.metalink
, and right-click to copy it to the clipboardaria2c <URL of metalink>
--seed-time=0
option if you want aria2c to exit after downloading and not seed the ISO, e.g.Exception/manual verification:
If aria2 had to download the ISO via HTTP/FTP (BT not available), or if you just want the security of double-verification, a one-liner in the following format should do it (split lines for readability)
ubuntu-12.04-desktop-i386.iso: OK
desktop-i386
should be replaced with the appropriate version-architecture you chose to download, e.g. server-amd64, alternate-i386 etc.MD5SUMS
can be replaced withSHA1SUMS
orSHA256SUMS
, with the correspondingmd5sum
at the end replaced withsha1sum
orsha256sum