What I want do is to purge (via aptitude purge) every package installed with a given string in its name.
E.g. apache2. I've got several packages with the string apache2 in their name installed on a system. Now I want to aptitude purge apache2 (like apache2, apache2.2-bin, libapache2-mod-ruby, etc.). But I do not find a way to do this.
Thanks for your answers in advance.