sudo gainroot apt-get autoremove
sudo gainroot dpkg -l | grep ^rc | cut -d ' ' -f3 | xargs dpkg --purge