Skip to content

dpkg-rc — Leftover configuration of removed packages

Packages removed (but not purged) during an upgrade leave their configuration behind, in state rc.

At a glance

ID dpkg-rc
Category Packages
Needs root no
Needs programs dpkg-query
Compares with a snapshot no
Options 0

What it checks

  • Packages in state rc (removed, config files remain).

Findings

Severity Finding What to do
info N removed packages still have configuration files Review with dpkg -l | grep ^rc; purge what you don't need with sudo apt purge PACKAGE… (the remediation lists them in batches).

Commands it runs

dpkg-query -W -f='${db:Status-Abbrev} ${Package}\n'

Limitations

  • Purging is usually safe, but the configuration may hold settings you want if you reinstall the package later.

Options

This check has no options. Turn it off with enabled: false under checks: dpkg-rc: in the configuration file, or for one run with --skip dpkg-rc.