Download Files and Check MD5 Hash with aria2c on Ubuntu
This article provides a concise tutorial on using the aria2c tool within the Ubuntu operating system to download files and subsequently calculate their MD5 hash for verification. It covers installation, execution of download commands, and the specific utilities required to generate and compare checksums to ensure file integrity.
Install aria2
Open your terminal and install aria2 if it is not already present on
your system. Run the following command to update your package list and
install the utility:
sudo apt update && sudo apt install aria2
Download the File
Use aria2c to download your target file by specifying the direct URL.
Replace the example link with your actual file source:
aria2c https://example.com/file.zip
Calculate the MD5 Hash
Once the download completes, use the md5sum utility
included in Ubuntu to generate the hash of the downloaded file. Replace
file.zip with your actual filename:
md5sum file.zip
Verify the Checksum
Compare the output string from the md5sum command with
the MD5 hash provided by the file source. If the two strings match
exactly, the file is intact and safe to use. If they differ, the
download may be corrupted and should be retried.