LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 08-17-2005, 05:47 PM   #1
stefanlasiewski
Member
 
Registered: Aug 2003
Location: Berkeley, California, USA
Distribution: Red Hat Enterprise Linux, Debian & Ubuntu
Posts: 92

Rep: Reputation: 16
Question 'apt-get remove apache2' doesn't remove apache2?


Alright guys, I'm trying Debian again with Sarge.

I'm trying to figure out the proper way to remove Apache2. It was installed by default, and I don't like the layout, and I want to build my own from scratch.

However, I can't figure out the proper way to remove Apache2. It seems pretty basic, but the files haven't been removed.

This is a basic, vanilla install of Debian Sarge. I have made no big modifications. During the Debian Install process I just went with the default (e.g. I hit return a bunch).

Here we have two Apache components:

Code:
# ll /usr/sbin/apache2 /etc/init.d/apache2
-rwxr-xr-x  1 root root   3583 May 11 22:36 /etc/init.d/apache2
-rwxr-xr-x  1 root root 384748 May 11 22:36 /usr/sbin/apache2
I use 'apt-get remove' to remove the Apache installation:
Code:
# apt-get remove apache2
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
  apache2*
0 upgraded, 0 newly installed, 1 to remove and 0 not upgraded.
But the files are still there:
Code:
# ll /usr/sbin/apache2 /etc/init.d/apache2
-rwxr-xr-x  1 root root   3583 May 11 22:36 /etc/init.d/apache2
-rwxr-xr-x  1 root root 384748 May 11 22:36 /usr/sbin/apache2
I expected the files to be removed. This seems pretty basic. What am I missing?

Last edited by stefanlasiewski; 08-17-2005 at 05:49 PM.
 
Old 08-17-2005, 06:20 PM   #2
bruno buys
Senior Member
 
Registered: Sep 2003
Location: Rio
Distribution: Debian
Posts: 1,513

Rep: Reputation: 46
apt leaves conf files and scripts, in case you wanna reinstall, or you manually crafted these files. Try:
apt-get remove apache2 --purge
 
Old 08-17-2005, 07:38 PM   #3
stefanlasiewski
Member
 
Registered: Aug 2003
Location: Berkeley, California, USA
Distribution: Red Hat Enterprise Linux, Debian & Ubuntu
Posts: 92

Original Poster
Rep: Reputation: 16
Thanks, but unfortunately /usr/sbin/apache2 is still there.

- /usr/sbin/apache2 isn't a conf file or script . It's a binary, and it seems like it should get removed.
- I never manually created either of those files.
- "apt-get remove apache2 --purge" doesn't remove the files.

It make some sense to keep /etc/init.d/apache2 and /etc/apache2/httpd.conf around.

Perhaps I munged the apt database ...
 
Old 08-21-2005, 04:54 PM   #4
stefanlasiewski
Member
 
Registered: Aug 2003
Location: Berkeley, California, USA
Distribution: Red Hat Enterprise Linux, Debian & Ubuntu
Posts: 92

Original Poster
Rep: Reputation: 16
Turns out /usr/sbin/apache2 is owned by the 'apache2-common' package. 'apache2-common' is not removed when you remove the 'apache2' package.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove apache2? freakin'me Linux - Software 3 08-13-2005 11:01 AM
Proper way to remove old kernel can564 Linux - Newbie 3 05-12-2004 08:47 PM
Remove apache2 (httpd) jermo5 Linux - Newbie 8 08-06-2003 07:20 AM
Remove apache2, keep apache 1.3 jermo5 Linux - Software 0 08-05-2003 09:37 AM
how do i remove server banners in apache2? groovin Linux - Networking 7 12-12-2002 01:32 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 11:29 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration