apt-get purge avahi*
Will print all packages that start with avahi (* – any characters after)
aptitude purge avahi*
This will also print for aptitude : Could not find packages containing "avahi *" in their name or description.
So the templates don't work for aptitude , or is there another way? Or can you customize it somehow?
analogue of this command:
$ sudo apt-get purge 'avahi*'
we can consider something like this:
$ sudo aptitude purge '?installed?name(^avahi)'
or, more shortly:
$ sudo aptitude purge '~i~n^avahi'