finding orphaned files

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi.

So I'm in the process of writing a script that does a few things:

1: creates a report of all RPM installed files whose md5 has changed [1]
2: creates a report of all non-rpm owned files (orphans)

I've actually got the script working.. First step takes about 9 minutes due
to the md5 hashing, and the second step takes all of about 15s.  Times
would be subjective to system, of course.   Anyways.  There is a problem
with the second report.  Many RPMs report that they own a directory instead
of a file.  Which isn't a bad thing, except that not all RPMs when removed
will actually remove the directory and its contents, depending on how it
was defined as owned.  My original thought was to just check to see if the
parent directory was owned, but I don't know how conclusive that would be,
or if it would hide from me some of the files I really need to see.
Anyone have any suggestions?

-greg


[1] I'm using a method similar to this:
http://people.redhat.com/pnasrat/rpm-python/rpm-python-slides/foil15.html

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux