[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Comparing HD to dpkg

On Sat, 19 Apr 1997 14:35:15 MDT Jason Ish (jbi130@mail.usask.ca) 

> This may be possible but I'm still getting a grasp on all the unix =
> utils.  I would like dpkg to make a master list of everyfile that it has =
> installed, then have linux make a list of every file on the system =
> (excluding /usr/local and /home) and then matching the 2 lists and give =
> me the output of files that are not in both lists so I can check them =
> out and clean my system of wasted disk space.

$ find / | sort > /tmp/on-disk
$ cat /var/lib/dpkg/info/*.list | sort > /tmp/dpkg
$ diff /tmp/{on-disk,dpkg}

Or a zsh one-liner:
$ diff <(find / | sort) <(cat /var/lib/dpkg/info/*.list | sort)


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: