[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



I'd try something like this: (disclaimer: quick, dirty, and slooow)

for FILE in $(find .); do
   if ! rpm -qf ${FILE} >/dev/null; then
       echo ${FILE} not found in db
   fi
done


JT wrote:


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I know that this has been asked before, but I don't know when, and there are no search facilities (that I could find) to look through old posts except manually, which frankly, would take way too long.

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.

The reason for this is that I'm planning on upgrading my machine this weekend, and I want to build custom RPMs for anything which I haven't done so for already so that I can track them more easily in the future.

Thanks for any help.

- --JT

- -- [-------------------------------------------------------------------------]
[ Practice random kindness and senseless acts of beauty. ]
[ It's hard to seize the day when you must first grapple with the morning ]
[-------------------------------------------------------------------------]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)


iD8DBQE/aIKMlZQYYI16LJQRAocyAKCehmecgjQIV5JGT4sMuF0+PcOSMQCfdRDq
ngRiKMP2Mdr21nh53ZflFh8=
=7qE1
-----END PGP SIGNATURE-----


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




--
Aaron Bennett
UNIX Administrator
Franklin W. Olin College of Engineering






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