Re: [SLUG] md5sum

From: jeff (jdavis70@tampabay.rr.com)
Date: Tue Jan 18 2005 - 08:52:27 EST


On Tuesday 18 January 2005 12:39, Mark Polhamus wrote:
> Richard Smoot wrote:
> > How do I use md5sum to check a download?
> > I just dl'd the ISO image of the ftp install of SUSE 9.2 Pro.
> > I also got the md5sum for it.
>
> Here's what I do on the command line (I'm certain there may be better
> methods which may make more sense if you verifying many files):
>
> echo <known good checksum cut/pasted from website/whatever>
> md5sum <downloaded file>
>
> then do a visual comparison of the two strings. For example, if I know the
>
> checksum for foo.iso should be "d41d8cd98f00b204e9800998ecf8427e":
> > [mark@granite ~ 3]$ echo d41d8cd98f00b204e9800998ecf8427e; md5sum
> > /tmp/foo.iso d41d8cd98f00b204e9800998ecf8427e
> > d41d8cd98f00b204e9800998ecf8427e /tmp/foo.iso
> > [mark@granite ~ 4]$
>
> Having the known good and the calculated checksum on top of each other
> makes comparison easier.
>
>
> -- Mark

Or if you don't want to trust your eyes (or someone else's eyes)with a visual
comparison, try this:
1) Download foo.iso
2) Download foo.md5sum
3) Md5sum foo.iso>my-foo.md5
4) Diff foo.md5sum my-foo.md5

Diff will only show a response if the two md5 files differ.

Jeff
-----------------------------------------------------------------------
This list is provided as an unmoderated internet service by Networked
Knowledge Systems (NKS). Views and opinions expressed in messages
posted are those of the author and do not necessarily reflect the
official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 20:20:35 EDT