Re: How to reinstall config files
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
Reply to: