I've been having some memory corruption issues, causing random crashes, but I've fixed them now. However, I'm concerned that some packages may be corrupted (as naturally any package update has to go through memory before it's written to disk).
Is there any way to automatically checksum all of the package files on a Debian system, and compare them to the archives, and if they're incorrect, update them?