I enjoy computer maintenance and recently I wanted to clean up my dpkg database.

I searched and searched and found what I was looking for!

How to clean up a Debian GNU/Linux machine

dpkg --purge $(dpkg --list | grep ^rc | awk '{ print $2; }')

Thanks much to:

Juliepedia’s “Cleaning up a Debian box”