[brlug-general] General Digest, Vol 77, Issue 1

William Anderson whanders at lasthonorableman.net
Fri Nov 6 09:17:32 CST 2009


On Thu, Nov 05, 2009 at 10:31:53PM -0600, Brad Bendily wrote:
> yeah. it seems to me that using the -c flag is an extra step. that I
> have to put the sum from the web
> into a file, then generate a sum on the iso file I have, then add that
> to the file too, then use the -c to compare?
> Am i making it more difficult than it really is?


You don't need to do all that;  you only need the md5sum from the site.  

I'm not sure what distro/version you're running but as long as the check
file is formatted correctly you should just be able to do:

$ md5sum -c checkfile

and md5sum will look for a file matching name in the second column,
generate a checksum for it, and compare it to the checksum in first
column.  For a lot of stuff I've used it for, you just need to repeat
the same wget command with a .md5 stuck at the end of the filename and
the run the `md5sum -c` command against that second file.

If you're using something really out of date or a non-GNU md5sum, none
of that may be correct.

Bill
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://brlug.net/pipermail/general_brlug.net/attachments/20091106/be34ce99/attachment.bin>


More information about the General mailing list