Search all installed packages containing a searchstring and uninstall them
This is a one-liner to search for installed packages containing a searchstring and then deinstall them using "apt-get remove":
apt-get remove --purge $(dpkg --get-selections | cut -f 1 | grep DPKG-SEARCHSTRING | xargs echo " " | tr -d '\n')