On Wed, Dec 05, 2001 at 08:46:03AM -0600, Mike Hicks wrote: > Bob Tanner <tanner at real-time.com> wrote: > > > > RPM is a good package tool, but not great. It's not very good a > > resolving dependancies. Worse, it doesn't know how to fetch anything > > that related to dependancies. > > One thing I've been wondering, do Debian packages keep some sort of > checksum on files that are installed? RPMs use MD5 hashes to verify the > integrity of installed files. That's one thing I've been missing, but I > might just not be finding the right dpkg option.. #! /bin/sh # Check integrity of packages # function usage() { cat << EOUSAGE Usage: $0 {package [package [...]]} e.g. dpkg --get-selections|awk '{print $1}'|$0 EOUSAGE exit 1 } [ $#@ -lt 1 ] && usage while [ $#@ -gt 0 ] ; do [ -f /var/lib/dpkg/info/${1}.md5sums ] && { md5sum -c /var/lib/dpkg/info/${1}.md5sums } shift done -- Chad Walstrom <chewie at wookimus.net> | a.k.a. ^chewie http://www.wookimus.net/ | s.k.a. gunnarr Get my public key, ICQ#, etc. $(mailx -s 'get info' chewie at wookimus.net) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 232 bytes Desc: not available Url : http://shadowknight.real-time.com/pipermail/tclug-list/attachments/20011207/ba59ee64/attachment.pgp