Last Updated: February 25, 2016
·
680
· darktim

List (and remove) installed packages which are not up to date

This needs "apt-show-versions" installed on your system. This is very usefull after a dist-upgrade to identify old packages and libraries

apt-show-versions | grep -v uptodate

If you want to purge ALL these packages, you may use this at your own risk:

apt-show-versions | grep -v uptodate | awk {'print $1'} | xargs dpkg -P