apt-get purge avahi* 

Will issue all packages that start with avahi (* symbol - any characters after)

 aptitude purge avahi* 

Also for aptitude will output: Could not find packages containing “avahi *” in its name or description.

So, for aptitude, the templates do not work, or is there another way? Or you can somehow customize?

1 answer 1

analogue of this command:

 $ sudo apt-get purge 'avahi*' 

can be considered something like this:

 $ sudo aptitude purge '?installed?name(^avahi)' 

or, more briefly:

 $ sudo aptitude purge '~i~n^avahi' 

search terms guide