Re: How to reinstall config files

From: Ed Shornock (debian-ml_at_crazeecanuck.homelinux.net)
Date: 04/09/05

  • Next message: Miquel van Smoorenburg: "Re: NIS And /home Dirs On Client Systems"
    Date: Fri, 08 Apr 2005 19:54:01 -0400
    To: debian-user@lists.debian.org
    
    

    marko.helle@pp.nic.fi wrote:

    > I had apache2 installed and working. Then I removed
    > it with:
    > apt-get remove --purge apache2
    >
    >
    Does the "--purge" have to be before the "remove"? I don't know, but
    that's the way I've always done it.

    >
    > I was confused about this and just deleted that dir:
    > rm -rf /etc/apache2
    >
    OK

    >
    > 2nd question: How can I perform full reinstall?

    Well...what does 'dpkg -l apache2' show?

    This e-mail reminded me that I still had apache1's configs laying around
    (I removed the package without purging it). So on my box I *had*:

    # dpkg -l apache
    Desired=Unknown/Install/Remove/Purge/Hold
    | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
    |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:
    uppercase=bad)
    ||/ Name Version
    Description
    +++-===============================-===============================-==============================================================================
    rc apache 1.3.33-3
    versatile, high-performance HTTP server

    # dpkg -P apache
    (Reading database ... 272705 files and directories currently installed.)
    Removing apache ...
    Purging configuration files for apache ...
    # dpkg -l apache
    Desired=Unknown/Install/Remove/Purge/Hold
    | Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
    |/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err:
    uppercase=bad)
    ||/ Name Version
    Description
    +++-===============================-===============================-==============================================================================
    pn apache <none> (no
    description available)

    I would suggest trying "dpkg -P apache2" then "apt-get install apache2"

    HTH

    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: Miquel van Smoorenburg: "Re: NIS And /home Dirs On Client Systems"

    Relevant Pages

    • Re: [PHP] Cant execute PHP script
      ... dpkg -l|grep apache ... I can't get my LAMP server setup to run PHP script. ... Thought I would try here before finding an apache ... HT ML-embedded scripting languag ...
      (php.general)
    • Re: [PHP] Cant execute PHP script
      ... dpkg -l|grep apache ... I can't get my LAMP server setup to run PHP script. ... [because I installed apache2/php5 via debian packages], ... Thought I would try here before finding an apache list. ...
      (php.general)
    • remaining init scripts for apache, mysql
      ... dpkg -l apache* ... dpkg -l mysql* ... apt-get remove "all mentioned on top with status ii", ...
      (Debian-User)
    • Re: Debian package management.
      ... > Chris .. ... To find the version available in the archive, it's apt-cache show ... To find the currently installed it's dpkg -s apache. ...
      (alt.os.linux)
    • Re: Debian package management.
      ... > To find the version available in the archive, it's apt-cache show ... To find the currently installed it's dpkg -s apache. ...
      (alt.os.linux)