Discussion:
How to reinstall config files
m***@pp.nic.fi
2005-04-08 23:18:11 UTC
Permalink
Hi all,

I have googled and read man pages, but either I just
dont understand or figure out right key words for
this problem. Any help is highly appreciated.

I had apache2 installed and working. Then I removed
it with:
apt-get remove --purge apache2

I thought now there is no reference to apache2 what
so ever. A bit later I was in /etc and noticed that
apache2 directory was still there (containing some config
files)...

1st question: why was't that dir deleted?


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


Now I would like to get apache2 back. I have tryed
following commands:
apt-get install apache2
apt-get install --reinstall apache2
apt-get -o DPkg::options::=--force-confmiss --reinstall install apache2
dpkg-reconfigure apache2
dpkg --install /var/cache/apt/archives/apache2_2.0.53-5_i386.deb
dpkg -i --force-confmiss /var/cache/apt/archives/apache2_2.0.53-5_i386.deb

but none of those wont install default config files
to /etc/apache2

2nd question: How can I perform full reinstall?

:)Marko
Ed Shornock
2005-04-08 23:54:01 UTC
Permalink
Post by m***@pp.nic.fi
I had apache2 installed and working. Then I removed
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.
Post by m***@pp.nic.fi
rm -rf /etc/apache2
OK
Post by m***@pp.nic.fi
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
m***@pp.nic.fi
2005-04-09 00:17:01 UTC
Permalink
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
Post by Ed Shornock
Post by m***@pp.nic.fi
I had apache2 installed and working. Then I removed
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.
Post by m***@pp.nic.fi
rm -rf /etc/apache2
OK
Post by m***@pp.nic.fi
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
# dpkg -l apache
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
uppercase=bad)
||/ Name Version
Description
+++-===============================-===============================-==============================================================================
Post by Ed Shornock
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
uppercase=bad)
||/ Name Version
Description
+++-===============================-===============================-==============================================================================
Post by Ed Shornock
pn apache <none> (no
description available)
I would suggest trying "dpkg -P apache2" then "apt-get install apache2"
HTH
--
with a subject of "unsubscribe". Trouble? Contact
***@lists.debian.org
Ed Shornock
2005-04-09 00:20:49 UTC
Permalink
Post by m***@pp.nic.fi
apache2 has some different sturcture.
Sort of...

$ apt-cache depends apache
apache
Depends: libc6
Depends: libdb4.2
Depends: libexpat1
Depends: mime-support
Depends: apache-common
Depends: apache-common
Depends: perl
Depends: logrotate
Depends: dpkg
Depends: libmagic1
Depends: debconf
Suggests: apache-doc
Conflicts: <apache-modules>
Conflicts: libapache-mod-perl
Conflicts: <jserv>
Replaces: <apache-modules>


The main difference (that I can see) is that apache directly depends
upon apache-common, whereas apache2 brings the mpm's into play (see
other e-mail) which depend upon apache2-common.

Glad you solved it though. :)

Continue reading on narkive:
Loading...