Remove apache2 completely from your system

Recently, while playing around, I deleted my apache2 directory.

The only option to get things working back was to reinstall apache.

But it was not getting completely removed.

Thus, after trying many things I came across the following which did the trick !!

 

sudo apt-get remove –purge $(dpkg -l apache* | grep ii | awk ‘{print $2}’)

One response to “Remove apache2 completely from your system

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s