Make sure you read the
man page for it, since it has some caveats (like you also need to check
-C
to make sure the hashes actually exist). And naturally you'll need to use a safe version of
dpkg
, not just chroot in to the filesystem and use its own copy.