how do I verify that the the checksum is correct?

Paul Smith phhs80 at gmail.com
Fri Feb 2 22:48:14 UTC 2007


On 2/2/07, Paul Smith <phhs80 at gmail.com> wrote:
> > > When I do : -
> > >
> > > sha1sum <iso file>
> > >
> > > this will output the checksum , do I have to verify by
> > > looking at the huge number that it is correct or is
> > > there a simple utilty which can compare the 2
> > > checksums  ?
> > >
> > > Thank you,
> > > Alex.
> > My trick is to copy the checksums into a text file, highlight one of
> > them and use find to see if it finds the next one.
>
> I have written a tiny script to do that. Basically, it compares two
> strings. I will post it to you later on, as I have not it with me now.

My simple script has the following code:

#!/bin/sh

if [ "$1" = "$2" ] ; then echo "same" ; else echo "different" ; fi

Paul




More information about the fedora-list mailing list