[mdlug] Check MD5 (Was: Re: SEMCO Linux install-fest redux)
Jeff Hanson
jhansonxi at gmail.com
Tue Feb 24 12:04:34 EST 2009
On Tue, Feb 24, 2009 at 7:08 AM, Peter Bart <peter at petertheplumber.net> wrote:
> To explain,
> so far I have not been able to remember how to compare md5 ?hashes? from
> the command line. Which I understand only confirms the download? I have
> to look it up every time. I usually start the disc and have it verify
> itself from the presented menu, which is much more time consuming. Time
> is always precious. You know that I'm more than happy to freely give
> useable stuff that I no longer have a use for as well.
I use this command line. You could make a simple script out of it.
If grep finds anything then the hash matched. This example shows
gparted and the CHECKSUMS.TXT file that has the md5 hash.
grep -i $(md5sum -b gparted-live-0.4.1-2.iso | sed -n 's/\(.*\)
.*$/\1/p') CHECKSUMS.TXT
More information about the mdlug
mailing list