Verify Installed Package Files with debsums
Detect modified, corrupted or replaced system files on Debian and Ubuntu using package checksums.
01Command
$ sudo debsums -s02What it does
debsums compares each file installed by a dpkg package against the md5 checksums stored in /var/lib/dpkg/info, so edited binaries, replaced libraries or accidental corruption surface as changed/failed lines. With -s it prints only files that fail verification, keeping the output readable. Files legitimately changed by configuration (conffiles) are handled, but freshly edited configs may need --changed or -e checks to review.
03Risk
04Undo
✓No undo needed — this command does not change persistent state.
05Sources
- debsums(1) — Debian manpageEvidence: Debian manpage documents debsums checking installed files against md5 checksums, with -s for reporting only errors
- debsums(1) — Ubuntu manpageEvidence: Ubuntu manpage describes debsums verification against stored md5 sums and the --changed option
Last verified: 2026-09-19 · Category: Security & Privacy
06Related solutions
Generate a modern Ed25519 public/private key pair in ~/.ssh for authenticating to servers and Git platforms without passwords.
Add or remove read, write, and execute permission for the owner, group, or others using symbolic or octal modes.
Add a UFW rule to permit inbound traffic on a TCP or UDP port, such as SSH on port 22.