Re: Comparing HD to dpkg
>>>>> "Philippe" == Philippe Troin <phil@fifi.org> writes:
Philippe> $ find / | sort > /tmp/on-disk $ cat
Philippe> /var/lib/dpkg/info/*.list | sort > /tmp/dpkg $ diff
Philippe> /tmp/{on-disk,dpkg}
Philippe> Or a zsh one-liner: $ diff <(find / | sort) <(cat
Philippe> /var/lib/dpkg/info/*.list | sort)
I just ran that command with BASH; it works just fine. The process
substitution notation is the same. Better still, do:
$ (diff <(find / | sort) <(cat /var/lib/dpkg/info/*.list | sort) | tee
/tmp/hd-dpkg.diff) | less
... so the output gets saved. It takes a long time to run the find on
large hard drives!
--
Karl M. Hegbloom <karlheg@inetarena.com>
http://www.inetarena.com/~karlheg
Portland, OR USA
Debian GNU 1.2 Linux 2.0.30t
You tell me and we'll both know.
--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
debian-user-request@lists.debian.org .
Trouble? e-mail to templin@bucknell.edu .
Reply to: