debsums
check the MD5 sums of installed Debian packages
- Provided by: debsums (Version: 2.0.52+nmu1)
- Report a bug
check the MD5 sums of installed Debian packages
debsums [options] [package|deb] ...
Verify installed Debian package files against MD5 checksum lists from /var/lib/dpkg/info/*.md5sums.
debsums can generate checksum lists from deb archives for packages that don't include one.
debsums returns 0 on success, or a combination* of the following values on error:
*If both of the first two conditions are true, the exit status will be 3.
The default installation of debsums package sets the debconf boolean value debsums/apt-autogen to be "true".
This will create /etc/apt/apt.conf.d/90debsums as:
DPkg::Post-Invoke {
"debsums --generate=nocheck -sp /var/cache/apt/archives";
};
by the postinst script (>=2.0.7). Every APT controlled package installation processes will execute this code fragment to generate the missing md5sums files from the binary packages.
In order to create md5sums files for the already installed packages, you must run debsums_init once after the installation of debsums package.
While in general the program may be run as a normal user, some packages contain files which are not globally readable so cannot be checked. Privileges are of course also required when generating sums with the keep option set.
Files which have been replaced by another package may be erroneously reported as changed.
debsums is intended primarily as a way of determining what installed files have been locally modified by the administrator or damaged by media errors and is of limited use as a security tool.
If you are looking for an integrity checker that can run from safe media, do integrity checks on checksum databases and can be easily configured to run periodically to warn the admin of changes see other tools such as: aide, integrit, samhain, or tripwire.
Written by Brendan O'Dea <bod@debian.org>.
Based on a program by Christoph Lameter <clameter@debian.org> and Petr
Cech <cech@debian.org>.
Copyright © 2002 Brendan O'Dea <bod@debian.org>
This is free software, licensed under the terms of the GNU General Public
License. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.