[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Finding all files on a system not in an RPM
- From: "Bill Rugolsky Jr." <brugolsky telemetry-investments com>
- To: rpm-list redhat com
- Subject: Re: Finding all files on a system not in an RPM
- Date: Wed, 17 Sep 2003 12:18:49 -0400
On Wed, Sep 17, 2003 at 12:14:44PM -0400, Bill Rugolsky Jr. wrote:
> On Wed, Sep 17, 2003 at 08:49:32AM -0700, JT wrote:
> > So, I'll ask a) for a search tool to be added to the RPM-list archives at
> > some point (please :) and b) for any useful ways people have of creating a
> > list of all files on a system which are not part of any RPM on the system.
>
> LC_ALL=C bash2 -c "comm -23 <(find / | sort -u) <(rpm -qal | sort -u)"
>
> Note that this does handle filenames with embedded newlines correctly.
Sorry to reply to myself, but note that one should of course
pipe the result through a filter such as:
egrep -v '^/(proc|tmp|var/tmp)'
Regards,
Bill Rugolsky
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]