How to verify downloaded ISO images

How to verify downloaded ISO images

book

Article ID: CTX116166

calendar_today

Updated On:

Description

This article contains information about checking the integrity of the downloaded ISO image before burning it to a media.
Corrupted ISO images can lead to problems during installation. Therefore, it is a good practice to check the integrity of the downloaded ISO image.


Instructions

Checking the Integrity of the ISO Image in Linux Operating System

Md5sum

Md5sum is a Linux command line utility to generate and verify the MD5 digests by using the MD5 algorithm. This is helpful for detecting file corruption.
Download pages provide md5sum digests for ISO images to verify against the file once it is downloaded. You can use md5sum to generate the md5 digest on your computer and verify it against the one available on the website. If they differ, then the downloaded ISO image is corrupt.

Command Syntax:

# md5sum [OPTION] [FILE]
Following is a sample of the simplest form of this command:
# md5sum <iso-file>
For more command options, refer the man page for md5sum.

Sha256sum

Sha256sum is another Linux command line utility used to compute and check the SHA256 message digest algorithm. Along with Md5sum, it is used for detecting file corruption as well.
Download pages also provide sha256sum digests for ISO images to verify against the file once it is downloaded. You can use sha256sum to generate the sha256 digest on your computer and verify it against the one available on the website. If they differ, then the downloaded ISO image is corrupt.
Command Syntax:

# sha256sum [OPTION] [FILE]
Following is a sample of the simplest form of this command:
# sha256sum <iso-file>
For more command options, refer the man page for sha256sum.

Environment

The above mentioned sample code is provided to you as is with no representations, warranties or conditions of any kind. You may use, modify and distribute it at your own risk. CITRIX DISCLAIMS ALL WARRANTIES WHATSOEVER, EXPRESS, IMPLIED, WRITTEN, ORAL OR STATUTORY, INCLUDING WITHOUT LIMITATION WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NONINFRINGEMENT. Without limiting the generality of the foregoing, you acknowledge and agree that (a) the sample code may exhibit errors, design flaws or other problems, possibly resulting in loss of data or damage to property; (b) it may not be possible to make the sample code fully functional; and (c) Citrix may, without notice or liability to you, cease to make available the current version and/or any future versions of the sample code. In no event should the code be used to support ultra-hazardous activities, including but not limited to life support or blasting activities. NEITHER CITRIX NOR ITS AFFILIATES OR AGENTS WILL BE LIABLE, UNDER BREACH OF CONTRACT OR ANY OTHER THEORY OF LIABILITY, FOR ANY DAMAGES WHATSOEVER ARISING FROM USE OF THE SAMPLE CODE, INCLUDING WITHOUT LIMITATION DIRECT, SPECIAL, INCIDENTAL, PUNITIVE, CONSEQUENTIAL OR OTHER DAMAGES, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. Although the copyright in the code belongs to Citrix, any distribution of the sample code should include only your own standard copyright attribution, and not that of Citrix. You agree to indemnify and defend Citrix against any and all claims arising from your use, modification or distribution of the sample code.

Issue/Introduction

This article contains information about checking the integrity of the downloaded ISO image before burning it to a media.