Assume I remove an rpm as follows:
rpm -e <package-name>
I then do a system wide search:
find / |grep <keyword-from-package-name>
It returns many instances where the keyword was referenced e.g.
If I do the following:
I get the following response:
Which means the directory is empty, so in the interest of keeping a system tidy:
My question is, what is the recommended way of removing leftover files and directories after removing rpm?
Is it by finding each individual instance and verifying that the file/directory is empty, as described above, and then doing an;
rm -f filename.extension
rm -rf directory_name
What do you do?