LinuxSA Mailing list archives

Index: [thread] [date] [subject] [author]
  From: Geoffrey D. Bennett <g@netcraft.com.au>
  To  : Benjamin Close <linux@senet.com.au>
  Date: Mon, 15 Mar 1999 12:24:24 +1030 (CST)

Re: Files not belonging to an rpm

> Hi all,
> 	How can I find all files on my system not belonging to an rpm?

Hi there,

rpm -qal | sort > rpm-list
find / | sort > file-list 
comm -23 file-list rpm-list | less

Similarly, you can do this to get a list of all files that belong to
an rpm, but don't exist:

comm -13 file-list rpm-list | less

Or a list of all files that belong to an rpm and do exist:

comm -12 file-list rpm-list | less

Regards,
-- 
Geoffrey D. Bennett (geoffrey@netcraft.com.au)
Computer Systems Manager, NetCraft Australia
http://www.netcraft.com.au/geoffrey/
Red Hat Linux Resellers: http://www.netcraft.com.au/linux/

-- 
Check out the LinuxSA web pages at http://www.linuxsa.org.au/
To unsubscribe from the LinuxSA list:
  mail linuxsa-request@linuxsa.org.au with "unsubscribe" as the subject


Index: [thread] [date] [subject] [author]
Return to the LinuxSA Mailing List Information Page