On Wed, Jul 27, 2005 at 05:12:53PM +0300, Michael Green wrote:
> I'm looking for script that will traverse filesystem of an RPM-based
> distro and find files that do not belong to any RPM.
> 
> Anyone?

'rpm -qal' will produce a list of files in an RPM package.

find can produce a list of files on the system . Be sure to to exclude
some trees (/proc , /sys , /home ?)

sort both and use diff -u to compare.

-- 
Tzafrir Cohen         | [EMAIL PROTECTED] | VIM is
http://tzafrir.org.il |                           | a Mutt's  
[EMAIL PROTECTED] |                           |  best
ICQ# 16849755         |                           | friend

=================================================================
To unsubscribe, send mail to [EMAIL PROTECTED] with
the word "unsubscribe" in the message body, e.g., run the command
echo unsubscribe | mail [EMAIL PROTECTED]

Reply via email to