I'm looking for a script that is run from a boot-CD doing the following for all files on a drive:
- find the debian-package a file is from (if possible)
- download and extract the debian-package
- generate md5sums for the installed file and the downloaded file
- list differences and files that weren't packaged
Is something like this readily available? (I don't trust the local deb-archive.)
Chris
Part 1
source: section 5.2
Part 2
source: Comment from dpk on Alfonso Vila's answer
Part 3
Debs are Ar archives and can be manipulated with
ar
. MD5 hashes can be found using:-- I stopped here as this is where I found
debsums
which does all of what you want in one tidy packagesources: Wikipedia on Deb and Debsums ManPage