Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I want to look for files polluting an old CentOS system in my company. Is there an easy way to do that?

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

If I understand correctly, you want to compare the list of all files on the system, with the list of files installed by RPMs. You should do something like this:

comm -13 <(rpm -qla | sort) <(find / -type f | sort) 
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.