Today: 10/10/2008
 

Checking Integrity of Downloaded Files using MD5sum

 
 

This tutorial will show how to check the integrity of a downloaded file using MD5Sum. For the tutorial, I have chosen OpenSSL as an example of a file downloaded from the Internet.

Downloading OpenSSL:

Run command below to download OpenSSL.

wget http://www.openssl.org/source/openssl-0.9.8e.tar.gz

Downloading and Checking MD5sum of the downloaded file:

Run the command below to download MD5sum of the downloaded file. Please note that the MD5sum may not be at the location where you downloaded the file from, so in that case you have to check the "downloads" page (where you downloaded the file from) to find the exact URL of the MD5 file (if available).

wget http://www.openssl.org/source/openssl-0.9.8e.tar.gz.md5

Now, the next step would be checking the downloaded file's integrity. Run the commands below.

md5sum openssl-0.9.8e.tar.gz
cat openssl-0.9.8e.tar.gz.md5

The commands above will generate strings of alphanumeric characters (circled in red in the image below). Check to see if both strings are exactly the same or not. If not, the downloaded file is corrupt. Repeat the steps above (from downloading to checking) at different times, if you still face the same result contact the webmaster of the website. If the two alphanumeric strings happen to be identical then the content of the downloaded file is valid according to MD5Sum.

MD5sum strings circled in red

=======================================================================================

Support Techs Worldwide:

Link to us:

You can support us by putting a link to our website on your blog or website (code is below).

<a href="http://www.techsww.com">
Techs Worldwide - Tutorials about Software Installation,
Configuration, Administration, Monitoring, Tools, Tips &
Tricks
</a>

OR a simple one.

<a href="http://www.techsww.com">
Techs Worldwide - IT related Tutorials
</a>

Feedbacks:

We appreciate feedbacks and suggestions about our tutorials and Techs Worldwide from readers. Please contact us using the form here and let us know what you think about the tutorial and the website in general.

Bookmark Us:

We are working on new features for the website, please keep visiting or bookmark us using your favourite bookmarking service.

Subscribe to RSS:

You can subscribe to our RSS feed here.

 
 
Creative Commons License   Valid XHTML 1.0 Transitional Valid CSS