## Purge after upgrade from Debian Wheezy to Jessie
#The following command displays a list of all removed packages that may have configuration files left on the system (if any):
dpkg -l | awk '/^rc/ { print $2 }'
#The packages can be removed by using apt-get purge. Assuming you want to purge all of them in one go, you can use the following command:
apt-get purge $(dpkg -l | awk '/^rc/ { print $2 }')
Comments