If you uninstall a package, but don't purge it, dpkg -l
will show it as rc
, meaning removed, but config files are left. Is there an easy way to see how much space is still used by such a package?
If you uninstall a package, but don't purge it, dpkg -l
will show it as rc
, meaning removed, but config files are left. Is there an easy way to see how much space is still used by such a package?
The config files should be listed in
/var/lib/dpkg/info/<package>.conffiles
. For example, with thedpkg
package:If there aren't too many files, you can use
xargs
anddu
:If there are too many files, you'll see multiple
total
lines.