Removing Apache from Debian 5

Solution 1:

Try apt-get remove apache2-utils.

In Debian 5, Apache is split into multiple packages:

  1. apache2
  2. apache2-mpm-prefork (or apache2-mpm-worker or apache2-mpm-event)
  3. apache2.2-common
  4. apache2-utils

There are interdependencies: (1) depends on (2), which depends on (3), which depends on (4). Therefore, removing (4) causes all of them to be removed. (The apache2 package doesn't contain much in itself; it just exists so that you can do apt-get install apache2 to conveniently install all of those packages.)