Debian – Check all debian binaries against the checksum of the original

checksumdebianmd5packagesrootkit

I would like to check all binaries on my server against

dpkg -e <path_to_deb_package> <destination>

(for example rkhunter could do this check against the originals when doing probupdate)

How could I check all packages with one script?

Best Answer

Install the package debsums. Run debsums -a to check all packages.