0

My question is how do I get the MD5Sum of a DEB file? I'm making a cydia repo, and my Packages file needs this. I know how to find an MD5Sum, I just don't know what to convert to MD5.

Noah
  • 95
  • 1
  • 14

2 Answers2

2

Like this?

md5sum package.deb

... Assuming this is the file containing your package.

Seriously, though, the toolchain already knows how to calculate this. Just use the existing Debian tools to set up your repo.

tripleee
  • 175,061
  • 34
  • 275
  • 318
  • Thanks! At the time, I was using a Mac, and thought I could do it manually. I couldn't get MacPorts, because it was PPC. – Noah Mar 09 '13 at 20:35
  • The Mac comes with a command `md5` which produces slightly different output. – tripleee Nov 11 '16 at 04:36
0

Extract the .deb file using the ar tool; extract the control.tar.gz file in it. Check if the contrl.tar has a file md5sums. cat md5sums. This will print the filenames to the right side and their md5 sums to the left. You are most probably looking for these files.

Sree
  • 117
  • 1
  • 11