Remove files from /var/cache/abrt-di

At some point in the past, I let abrt install debuginfo locally, since the “retrace” step was failing over and over. Now I’m short on disk space and realize there are 8 GB of files under /var/cache/abrt-di. I understand these are the debuginfos installed by abrt back then, but I found no way to remove them with dnf. If I try:

  dnf list installed | grep debuginfo

It doesn’t list the packages there. I wonder if I can just remove the directory…

Thanks in advance.

1 Like

You can remove files not owned by the installed packages:

sudo find /var/cache/abrt-di -exec rpm -q -f {} + | grep -e "\snot\sowned\s"

How to uninstall packages installed by Problem Reporter (gnome-abrt) - #2 by vgaetera

Thanks! I ran the “negative” of your command to find owned files:

sudo find /var/cache/abrt-di -exec rpm -q -f {} + | grep -ve "not owned"

Which told me that only the directory /var/cache/abrt-di itself was owned by this package:

rpm -ql abrt-addon-ccpp-2.14.5-1.fc33.x86_64

Finally, I removed everything except that directory with:

sudo rm -rf /var/cache/abrt-di/*
2 Likes

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.