Skip to content

Instantly share code, notes, and snippets.

@hxmuller
Last active October 20, 2016 14:03
Show Gist options
  • Save hxmuller/924c25e79420d42f3721de2a0b9b1cca to your computer and use it in GitHub Desktop.
Save hxmuller/924c25e79420d42f3721de2a0b9b1cca to your computer and use it in GitHub Desktop.
verify integrity of all installed Debian packages
# dpkg - package manager for Debian
# -V Verifies the integrity of package-name or all packages if omitted
#
# The output format:
#
# SM5DLUGT c <file>
#
# Where:
# S is the file size.
# M is the file's mode.
# 5 is the MD5 checksum of the file.
# D is the file's major and minor numbers.
# L is the file's symbolic link contents.
# U is owner of the file.
# G is the file's group.
# T is the modification time of the file.
# c appears only if the file is a configuration file. This is handy for
# quickly identifying config files, as they are very likely to change,
# and therefore, very unlikely to verify successfully.
# <file> is the file that failed verification. The complete path is listed
# to make it easy to find.
sudo dpkg -V
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment