Reputation: 85
Is there a way to uninstall several applications using command in the BASH?
I would like to uninstall all applications based on emacs.
More precisely.
There are several applications whose name is something like emacsX
, with X being some number or letter.
Is there a way to uninstall all applications of these kind, without using the command sudo apt-get remove emacsX
ten times?
Upvotes: 0
Views: 80
Reputation: 84
apt-cache search --names-only '^emacs*' | awk '{print $1}' | xargs -L1 sudo apt-get -y remove
Explained:
Upvotes: 1