Leftovers after removing RPMs
Installing and removing PCP RPMs on Fedora leaves these directories behind, perhaps the spec file could be tweaked so that they'll get removed as well:
+/etc/pcp +/etc/pcp/pmlogredact +/usr/share/doc/pcp-doc +/usr/share/pcp +/usr/share/pcp/demos
On perhaps a more cosmetic level I see that when installing PMDAs then /etc/pcp/pmcd/pmcd.conf provided by the pcp.rpm gets updated and its header lines rearranged for some reason and the note "This file is automatically generated during the build" is still present. I'm not sure is that message helpful after installing PCP and probably even less so after some PMDAs have been installed locally. But I guess it's harmless so could be also left there.
Thanks.
Thanks Marko for opening this topic. When I install all the PCP rpms available on Fedora (or CentOS Stream) and uninstall these, I get also the following directories:
/usr/libexec/pcp
/usr/libexec/pcp/lib
/usr/libexec/pcp/pmdas
/usr/libexec/pcp/pmns
/usr/share/pcp-gui
/usr/share/pcp/pmdas
/usr/share/pcp/pmdas/bpftrace
/var/lib/pcp
/var/lib/pcp/config
/var/lib/pcp/pmns
/var/log/pcp
/var/log/pcp/pmlogger
With exception of /var/log/pcp/* which we want to keep, as it contains archives, I believe the rest can be cleaned as well.
@kurik I think there's two cases here. Some directories are missing from our makefiles, fixing this should resolve the issue for those cases, e.g.
$ rpm -qf /etc/pcp/pmlogredact /usr/share/doc/pcp-doc
file /etc/pcp/pmlogredact is not owned by any package
file /usr/share/doc/pcp-doc is not owned by any package
For the rest, we would need to understand why rpm has not removed them, since it knows they are part of PCP. Its likely there is some residual content therein, e.g. /var/lib/pcp/config may contain generated config files, so rpm probably (rightly) refuses to remove this in case they're important.