Suresh Payankannur

Thursday, April 24, 2014

Remove packages marked as 'deinstall' in Ubuntu

To list left over configuration files and binaries for Ubuntu packages
dpkg --get-selections | grep -i deinstall
To completely remove packages including binaries and configuration files
dpkg --get-selections | grep -i deinstall | awk -F ' ' '{print $1}' | xargs sudo apt-get purge -y -

0 comments:

Post a Comment

Blog Archive

Scroll To Top