Re: how do I verify that the the checksum is correct?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



test [ "`sha1sum cd.iso`" = "`cat checksumfile.txt`" ] && echo
"matches" || "echo "no match"
where checksumfile.txt is the one provided by the web site.

Minor correction to the above.  I booted to my FC partition and tested
it outside and within a script.  The proper syntax is:

test "$(sha1sum cd.iso)" = "$(cat checksumfile.txt)" && echo "Matches"
|| echo "No match"
or
test "`sha1sum cd.iso`" = "`cat checksumfile.txt`" && echo "Matches"
|| echo "No match"

The difference being no square brackets [].  Of the two syntaxes
above, I've been typically using the back ticks ` (above the tidle ~).
But in a BASH scripting book that I have the author uses $() instead
of ``.

If you have several iso files that youve downloaded along with their
checksum files, simply cat all the files into one
cat cd1chksum.txt cd2chksum.txt cd3chksum.txt etc... > checkthese.txt
and then run the command
sha1sum -c checkthese.txt

A quick and efficient way to check several checksum files.

Jacques B.

[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux