On Thu, Dec 18, 2003 at 04:01:59PM +0800, Deds Castillo wrote:
> I forgot to mention that of course you probably want to narrow it down 
> by passing arguments to find like if you're only interested in 
> executables or cetain filenames and stuff.

... and the files installed/created by rpm via %post install script
cannot be simply traced.

> 
> On Thursday 18 December 2003 03:59 pm, Deds Castillo wrote:
> 
> > You can also brute force it.
> >
> > find / -type f -exec rpm -q -f '{}' ';' | grep "not owned"

A faster alternative is to use join and sort. 
E.g.

rpm -qal | sort > files-owned-by-rpm
find /bin /etc /opt /sbin /usr /var /boot /lib | sort > all-files
join -v 2 files-owned-by-rpm all-files > files-not-owned-by-rpm

-- 
$_=q:; # SHERWIN #
70;72;69;6e;74;20;
27;4a;75;73;74;20;
61;6e;6f;74;68;65;
72;20;50;65;72;6c;
20;6e;6f;76;69;63;
65;27;:;;s=~?(..);
?=pack q$C$,hex$1;
;;;=egg;;;;eval;;;
--
Philippine Linux Users' Group (PLUG) Mailing List
[EMAIL PROTECTED] (#PLUG @ irc.free.net.ph)
Official Website: http://plug.linux.org.ph
Searchable Archives: http://marc.free.net.ph
.
To leave, go to http://lists.q-linux.com/mailman/listinfo/plug
.
Are you a Linux newbie? To join the newbie list, go to
http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie

Reply via email to