-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Adam Monsen wrote:
> On Tue, 2008-12-30 at 11:13 -0600, Jeremy wrote:
>> How can I find all the files which are not in packages in ubuntu?
> 
> Here's an idea:
> 
>   find / > /tmp/allfiles.txt
>   for i in `cat /tmp/allfiles.txt`
>   do
>     if ! dpkg --search $i
>     then echo $i > /tmp/unknown.txt
>     fi
>   done
> 
> You might want "-type f" in that find command.
> 

You certainly want:

then echo $i >> /tmp/unknown.txt

While this approach will probably work, it's bound to be fairly slow.

- --
Thanks,

Josh Paetzel

PGP: 8A48 EF36 5E9F 4EDA 5ABC 11B4 26F9 01F1 27AF AECB
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (Darwin)

iEYEARECAAYFAklby4wACgkQJvkB8Sevrss/LQCfa9nfu3kMqMQrsLAj7TCt8hxi
AyEAn2NY9T0MuDRvI5+Jwbn3SCaPWTuq
=3t5t
-----END PGP SIGNATURE-----