Find the answer to your Linux question:
Results 1 to 5 of 5
How do you remove a package with apt? I'm trying to uninstall apache2. I have tried "apt-get remove apache2 apache2-common httpd" and every package I can think of. It says ...
  1. #1
    Linux Newbie
    Join Date
    Aug 2005
    Location
    Sterling, VA
    Posts
    100

    Removing Apache2 (or any package)

    How do you remove a package with apt? I'm trying to uninstall apache2. I have tried "apt-get remove apache2 apache2-common httpd" and every package I can think of. It says they are now uninstalled, but the web server is still running. The binaries are still there.

    What am I doing wrong? How is apache still running if I have uninstalled the packages?
    - EndianX -

  2. #2
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077
    might be a good idea to stop apache or kill the pid
    Code:
    /etc/init.d/apache2 stop
    killall -9 apache
    apt-get remove should have done it. you can also try
    Code:
    dpkg -P apache2
    the -P means purge and should remove it completely.

  3. #3
    Just Joined!
    Join Date
    Jun 2008
    Posts
    9
    I usually use aptitude purge filename. It's a personal choice.

    jledhead answered nicely.

  4. #4
    Blackfooted Penguin daark.child's Avatar
    Join Date
    Apr 2006
    Location
    West Yorks
    Posts
    4,343
    Quote Originally Posted by Jason Coplen View Post
    I usually use aptitude purge filename. It's a personal choice.

    jledhead answered nicely.
    Same here. Another option is "apt-get purge".

  5. #5
    Just Joined!
    Join Date
    Jun 2008
    Posts
    9
    Quote Originally Posted by daark.child View Post
    Same here. Another option is "apt-get purge".
    wajig purge?

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •