How do you check md5 checksums? Topic is solved

Need help with your Linux distro? All questions are good - not all answers are -but we try

Moderator: jkerr82508

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

How do you check md5 checksums?

Postby viking60 » 04 Aug 2011, 14:15

Code: Select all

md5sum <file_to_check>
Is the classic way. There must be some easier way to do this. How do you do it? I am lazy and looking for something fool proof?
Apps to recommend? Integration with Dolphin or Nautilus?
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

jkerr82508
Guru-Berserk
Posts: 211
Joined: 16 Oct 2010, 21:45
Location: Fife, Scotland

Re: How do you check md5 checksums?  Topic is solved

Postby jkerr82508 » 04 Aug 2011, 14:56

What could be easier than:
md5sum -c file.md5

where file.md5 is the file containing the md5sum

Jim

User avatar
rolf
Guru-Berserk
Posts: 1107
Joined: 16 Mar 2010, 16:07

Re: How do you check md5 checksums?

Postby rolf » 04 Aug 2011, 15:19

Be aware that the md5sum file has to comply with a specific format. IOW, I have used the file provided with certain downloads, it did not come in the proper format, so I needed to `md5sum` the download and `cat` the md5sum file.

Sometimes, the md5sum hash is displayed at the download site in the browser. I have dragged the mouse over that hash, gone to konsole, where I have already cd'ed to the directory with the download and

echo <middle-click>
Enter

That puts the hash at the beginning of the line. Then

md5sum <download>
Enter

After some wheels grinding, the result is printed, starting at the beginning of the line just below, making comparison fairly easy.

But really, are we going for the Guinness Book of World Records on "lazy" here? :lol:

P(ost).S(miley). The manual seems to provide what is the proper format, in case you ever want to make a text file that md5sum -c will understand:

Code: Select all

The  sums  are  computed  as described in RFC 1321.  When checking, the input should be a former output of
       this program.  The default mode is to print a line with checksum, a character  indicating  type  (`*'  for
       binary, ` ' for text), and name for each FILE.

User avatar
viking60
Über-Berserk
Posts: 9351
Joined: 14 Mar 2010, 16:34

Re: How do you check md5 checksums?

Postby viking60 » 04 Aug 2011, 21:11

Thanks guys I am confused at a much higher level now! I will do it like you gurus suggest.
It was this that triggered the question:
http://gnome-look.org/content/show.php/ ... ent=129309
Manjaro 64bit on the main box -Intel(R) Core(TM) i7 CPU 920 @ 2.67GHz and nVidia Corporation GT200b [GeForce GTX 275] (rev a1. + Centos on the server - Arch on the laptop.
"There are no stupid questions - Only stupid answers!"

User avatar
dedanna1029
Sound-Berserk
Posts: 8784
Joined: 14 Mar 2010, 20:29
Contact:

Re: How do you check md5 checksums? [SOLVED]

Postby dedanna1029 » 05 Aug 2011, 16:07

I'm with Jim on this one. I use just "md5sum" on the file itself, "md5sum -c" on the burned cd of the file. Then just cat the md5sum file & see if they match.
I'd rather be a free person who fears terrorists, than be a "safe" person who fears the government.
No gods, no masters.
"A druid is by nature anarchistic, that is, submits to no one."
http://uk.druidcollege.org/faqs.html


Return to “Help”