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

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

 



The -c option is the easiest in my opinion as it uses the features of
the checksum application.

If you want to do it otherwise, you could do something like:

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

I'm not in my Linux partition right now so I can't check the syntax to
be exactly certain that is right.  If it's off I'm sure someone can
correct it.  But ultimately why do that when you can simply use the -c
option?

Alternatively you could do
sha1sum cd.iso >> checksumfile.txt
where "checksumfile.txt" is the one provided by the web site.
Then you can cat the file and easily compare the two because they will
be one under the other so at a glance easy to see if they match or
not.

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