Skip to content

Instantly share code, notes, and snippets.

@jrosco
Created September 12, 2018 06:49
Show Gist options
  • Save jrosco/a704221e4c03a6aae4928db4f24e4b92 to your computer and use it in GitHub Desktop.
Save jrosco/a704221e4c03a6aae4928db4f24e4b92 to your computer and use it in GitHub Desktop.
Check a installed packages mdsum on files
$ dpkg -S /usr/sbin/tcpd
tcpd: /usr/sbin/tcpd
$ (cd /; md5sum -c /var/lib/dpkg/info/tcpd.md5sums)
usr/sbin/safe_finger: OK
usr/sbin/tcpd: OK
usr/sbin/tcpdchk: OK
usr/sbin/tcpdmatch: OK
usr/sbin/try-from: OK
usr/share/man/man8/safe_finger.8.gz: OK
usr/share/man/man8/tcpd.8.gz: OK
usr/share/man/man8/tcpdchk.8.gz: OK
usr/share/man/man8/tcpdmatch.8.gz: OK
usr/share/man/man8/try-from.8.gz: OK
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment