[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: How to reinstall config files



Hi,

Thanks Ed for Your help :)

I downloaded apache packege with:
apt-get -d install apache

and checked what was in data.tar.gz

It seems to contain binaries and configurations
in it, so I guess
# apt-get --purge remove apache
# apt-get install apache

would work fine with apache.

apache2 has some different sturcture.

:)Marko


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




Reply to: