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')
FUN WITH LINUX
10 November 2016
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')
Linux
One-Liner
Shell
]
Copyright 2015-present Hoti