LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 01-22-2008, 07:15 AM   #1
manz00r
Member
 
Registered: Jan 2008
Posts: 33

Rep: Reputation: 15
md5 checksum


how to check the md5 checksum of slackware

and with which software?
 
Old 01-22-2008, 07:40 AM   #2
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
What do you mean "the checksum of Slackware"??? Do you mean the checksum of the Slackware ISO image?

If so, there should be a file in the remote directory (via FTP or HTTP) where you downloaded the ISO from with a name something like "checksum.md5".

Download this file (it's just a plain text file with a few digits in it), and then I believe the command is:
Code:
$ md5sum -C checksum.md5 slackware-12.0-dvd.iso
Note, this WILL take a while (as it's 4GB of data). If it complains that "-C" is an undefined option, then read the manpage - "man md5sum".
 
Old 01-22-2008, 07:47 AM   #3
manz00r
Member
 
Registered: Jan 2008
Posts: 33

Original Poster
Rep: Reputation: 15
i dont have linux
how to check them on windows ?
 
Old 01-22-2008, 07:54 AM   #4
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,024
Blog Entries: 1

Rep: Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364
Hi,

Quote:
Originally Posted by manz00r View Post
how to check the md5 checksum of slackware

and with which software?
If you downloaded the cd/dvd iso then be sure to check the md5sum for the original iso before you burn the image. From the cli;

Code:
~#cd /downloadisolocation      #cdromiso.iso cdromiso.md5 

~#md5sum -c cdromiso.md5       #substitute the correct name to check
If the iso md5 is ok then you can burn the image but you should try 'CdromMd5sumsAfterBurning'' to insure the image that you burnt is valid.

This way you will know if the burn was OK!

Quote:
excerpt from 'man md5sum'

MD5SUM(1) User Commands MD5SUM(1)

NAME
md5sum - compute and check MD5 message digest

SYNOPSIS
md5sum [OPTION] [FILE]...

DESCRIPTION
Print or check MD5 (128-bit) checksums. With no FILE, or when FILE is
-, read standard input.

-b, --binary
read in binary mode

-c, --check
read MD5 sums from the FILEs and check them

-t, --text
read in text mode (default)

The following two options are useful only when verifying checksums:
--status
You should read the 'man command' whenever you need immediate information.
 
Old 01-22-2008, 09:40 AM   #5
Eternal_Newbie
Member
 
Registered: Jun 2005
Location: The Pudding Isles
Distribution: Slackware 13.37
Posts: 573

Rep: Reputation: 58
Under windows you can check md5sums either with a program like winmd5sum: http://www.nullriver.com/index/products/winmd5sum

Or if you have cygwin http://www.cygwin.com/ , which is basically a port of the gnu binutils to Windows, you can use the version of md5sum included with that.

If you are not familiar with the command line, winmd5sum or similar will be easier to use.
 
Old 01-22-2008, 10:55 AM   #6
b0uncer
Guru
 
Registered: Aug 2003
Distribution: CentOS, OS X
Posts: 5,131

Rep: Reputation: Disabled
Or you can download the md5sum.exe found on the web and place it to the system directory of your Windows operating system, after which Command Prompt will locate it when you launch it by it's name (you only have to type "md5sum" to start it, instead of "c:\[path]\[to]\[md5sum]\[program]\md5sum.exe" for example). You can locate it by searching for md5sum.exe on your favourite web search engine. For example etree.org/md5com.html should contain it (just found it, didn't check - verify the page yourself first).

After downloading it to your system directory just open up a command prompt (start -> programs -> accessories -> ...), head to the place where your Slackware image is (or whatever file you want to check), and either run
Code:
md5sum filename.xyz
to calculate a checksum for filename.xyz, or if you downloaded the MD5SUM file (which contains the checksums from the original file creator) to the same directory where the file-to-be-checked is,
Code:
md5sum -c MD5SUM
which should report "ok" to files whose checksum matches, or errors in other cases. Note that if the MD5SUM file contains checksums for files that don't exist on the directory, md5sum reports errors about them - dismiss those.

I recall the switch to check files mentioned in a checksum file (MD5SUM usually) is lowercase "-c", not uppercase "-C".
 
1 members found this post helpful.
Old 01-23-2008, 01:47 PM   #7
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,441

Rep: Reputation: 70
For windows I would recommend either using the md5sum.exe file straight up as mentioned by b0uncer or use md5summer.

This thread would probably be more appropriate in "General" as it doesn't really have anything to do with Linux or Slackware.

That being said this is a great forum to place questions if you have trouble installing Slackware or need help with other Slackware-related things.
 
Old 01-23-2008, 06:39 PM   #8
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,024
Blog Entries: 1

Rep: Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364
Hi,
Quote:
Originally Posted by shadowsnipes View Post
For windows I would recommend either using the md5sum.exe file straight up as mentioned by b0uncer or use md5summer.

This thread would probably be more appropriate in "General" as it doesn't really have anything to do with Linux or Slackware.

That being said this is a great forum to place questions if you have trouble installing Slackware or need help with other Slackware-related things.
Don't agree! The OP asked how to check the md5sum for Slackware.
Therefore it does belong in this forum. Some of the responses were related to other issues but they are related.

Read the original post.
 
Old 01-23-2008, 10:18 PM   #9
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,441

Rep: Reputation: 70
Quote:
Originally Posted by onebuck View Post
Hi,


Don't agree! The OP asked how to check the md5sum for Slackware.
Therefore it does belong in this forum. Some of the responses were related to other issues but they are related.

Read the original post.
The original poster asked how to check the md5sum for a Slackware install cd ISO, not how to check a md5sum in Slackware itself. Please reread his posts which I quoted below.

Quote:
Originally Posted by manz00r View Post
how to check the md5 checksum of slackware

and with which software?
Quote:
Originally Posted by manz00r View Post
i dont have linux
how to check them on windows ?
Do you see the part where he says he doesn't have Linux and wants to use Windows to do this?

It's not a big deal and it doesn't really matter to me what forum this particular thread is in. It is just my opinion that it belongs more appropriately in a non-Linux forum since this thread is about Windows software.
 
Old 01-24-2008, 11:00 AM   #10
onebuck
Moderator
 
Registered: Jan 2005
Location: Midwest USA, Central Illinois
Distribution: SlackwareŽ
Posts: 11,024
Blog Entries: 1

Rep: Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364Reputation: 1364
Hi,
Quote:
Originally Posted by shadowsnipes View Post
The original poster asked how to check the md5sum for a Slackware install cd ISO, not how to check a md5sum in Slackware itself. Please reread his posts which I quoted below.

Do you see the part where he says he doesn't have Linux and wants to use Windows to do this?

It's not a big deal and it doesn't really matter to me what forum this particular thread is in. It is just my opinion that it belongs more appropriately in a non-Linux forum since this thread is about Windows software.
Yes, I saw that part of the thread. Note where I posted in the time line of the thread. I still don't agree that the thread should be posted somewhere else.

A lot of M$ users ask question relative to their needs in this forum. Don't be a purist! GNU/Linux is just a tool, just like M$ Win/XP/VISTA or whatever. GNU/Linux just happens to be open and a better OS yet it is still a tool.

If it didn't matter so much to you then why the big response?
 
Old 01-24-2008, 12:17 PM   #11
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,441

Rep: Reputation: 70
Quote:
Originally Posted by onebuck View Post
A lot of M$ users ask question relative to their needs in this forum. Don't be a purist! GNU/Linux is just a tool, just like M$ Win/XP/VISTA or whatever. GNU/Linux just happens to be open and a better OS yet it is still a tool.

If it didn't matter so much to you then why the big response?
I just wanted to state my opinion on the matter. That is all.

I was not saying that the post shouldn't be on linuxquestions.org. Rather I was saying it would be more appropriate at the General Section of linuxquestions.org because the Original Poster was asking about how to check the md5sum using Windows Software.

How is this being a "purist"?
 
Old 06-29-2008, 12:52 PM   #12
mzcd
LQ Newbie
 
Registered: Oct 2003
Location: Midwest, USA
Distribution: have used, in order, red hat, ubuntu, slackware
Posts: 3

Rep: Reputation: 0
Unsure of which system directory you mean


Update: Nevermind, I got it.


WINDOWS under C:\ is the directory I wanted.
and the file as MD5SUM in your example should have been, you meant, the file name (as found by right-clicking properties on the file)

Original post follows:
Quote:
Originally Posted by b0uncer View Post
Or you can download the md5sum.exe found on the web and place it to the system directory of your Windows operating system,
Excuse me, but which is the System Directory on Windows XP Home?
I copied my md5sum.exe program to the C drive in the Explore tree and it disappeared. Then I ran these commands like you said...


Quote:
Originally Posted by after which Command Prompt will locate it when you launch it by it's name (you only have to type "md5sum" to start it, instead of "c:\[path
\[to]\[md5sum]\[program]\md5sum.exe" for example). You can locate it by searching for md5sum.exe on your favourite web search engine. For example etree.org/md5com.html should contain it (just found it, didn't check - verify the page yourself first).

After downloading it to your system directory just open up a command prompt (start -> programs -> accessories -> ...), head to the place where your Slackware image is (or whatever file you want to check), and either run
Code:
md5sum filename.xyz
to calculate a checksum for filename.xyz, or if you downloaded the MD5SUM file (which contains the checksums from the original file creator) to the same directory where the file-to-be-checked is,
Code:
md5sum -c MD5SUM
And it told me
Code:
C:\...\My Documents\Downloads>md5sum -c MD5SUM
'md5sum' is not recognized as an internal or external command,
operable program or batch file.
I quickly hit Undo Move and landed the md5sum executable back on my desktop. Now where SHOULD I have placed in in the Windows XP file tree?

Last edited by mzcd; 06-29-2008 at 01:09 PM. Reason: bolding note that i figured it out and moving it to the top
 
Old 06-29-2008, 01:23 PM   #13
brianL
LQ 5k Club
 
Registered: Jan 2006
Location: Oldham, Lancs, England
Distribution: Slackware & Slackware64 14.1
Posts: 6,870
Blog Entries: 51

Rep: Reputation: Disabled
Put it in C:\WINDOWS, or in any directory in your PATH.
 
Old 06-30-2008, 09:39 AM   #14
not_bob
LQ Newbie
 
Registered: Jun 2008
Location: CO
Distribution: Slackware
Posts: 15

Rep: Reputation: 0
manz00r,

For Windows, I use MD5summer. It's quick, easy and has a basic Windows gui interface.

http://www.md5summer.org/

I also see no accurate answer on how to do md5sum FROM slackware, so when you get your slack loaded and want to check a download FROM slack, do this.

$ md5sum -c filename.md5

The above command typically requires you have the file you want to check and the .md5 file in the same directory. That means you will have 2 files:

filenamefoo
filenamefoo.md5

....and you plug the .md5 file into the above command, not the name of the file you are checking (filenamefoo).

The contents of an .md5 file has this format:

hashsum filename
^^

Example:

e60930ce488c41f0d39ed libkipi-0.1.6-i486.tgz

Note the TWO spaces between the hashsum and the filename. Also note the filename is the file name you want to check, not the md5sum file name. I point this out because sometimes you can't download the .md5 file, but can read the hashsum value, in which case you would create the .md5 file by using a text editor to enter a single line like the above example and labeling it an .md5 file of the same name as the filename within the file, only with an .md5 extension. Then run the md5sum command as above.

Confused? Me too. The man md5sum page is one of the most vague man pages I ever ran across, so I like to help anyone who is confused by this particular command.

nb
 
Old 06-30-2008, 09:47 AM   #15
not_bob
LQ Newbie
 
Registered: Jun 2008
Location: CO
Distribution: Slackware
Posts: 15

Rep: Reputation: 0
DOH!

I see posting here doesn't always preserve the spacing I intended. Oh well, just realize the always use TWO spaces between the hash and the filename when creating an .md5 file. No more, not less.

nb
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
md5 checksum CyberTroniX Linux - Newbie 3 01-16-2006 12:11 PM
md5 checksum aruna Rawat Fedora - Installation 2 06-03-2005 10:59 AM
MD5 Checksum hitest Mandriva 7 05-21-2005 06:06 PM
Md5 Checksum dna9 Linux - Newbie 2 12-18-2004 11:11 PM
MD5 Checksum codedv Linux - Distributions 5 12-07-2003 08:28 AM


All times are GMT -5. The time now is 06:55 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration