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

Re: extract debian package default config



Hi Celejar,

Is there some command which extract this from the package or is it 
extracted somewhere?
    
There are probably better ways, but you can usually purge and reinstall
Yes, that's what I've done.

But doing that way I loose enabled modules and sites for apache.

Not that hard to reinstall, but could be worse.

I can also extract from source may be.
I just hope there's some good switch to apt-get or dpkg?

you can extract the package content also:
cd /tmp
mkdir apache2_tmp
cd apache2_tmp
ar -x /var/cache/apt/archives/apache2.2-common_2.2.9-10+lenny2_i386.deb
tar tvf data.tar.gz  | grep apache2.conf
drwxr-xr-x root/root         0 2009-01-20 18:24 ./etc/apache2/conf.d/
-rw-r--r-- root/root      1464 2009-01-20 18:24 ./etc/apache2/conf.d/security
-rw-r--r-- root/root       269 2009-01-20 18:24 ./etc/apache2/conf.d/charset
-rw-r--r-- root/root     10104 2009-01-20 18:24 ./etc/apache2/apache2.conf
-rw-r--r-- root/root      5774 2009-01-20 18:31 ./usr/share/doc/apache2.2-common/examples/apache2/apache2.conf.gz

No better way?

Thanks for your suggestions.
Regards,
Sylvain.

Reply to: