Sunday, September 25, 2011

How to get rid of all the rc entries in dpkg -l?

i just did the following and it seems to work

dpkg -l|grep -e ^rc|perl -pe 's/rc\s+(\S+)\s+\d.*/$1/'|xargs apt-get -y remove --purge

use at your own risk!