A
A
andyceo2012-10-09 22:49:50
linux
andyceo, 2012-10-09 22:49:50

How to take application config files from deb package? (Ubuntu 12.04)?

There was such task: It was
updated to Ubuntu 12.04 and some applications used by me were updated (for example, nginx). Accordingly, new settings appeared in it, which in previous versions simply were not in the default configuration files.
If you install the nginx package from scratch on a new system, it will create some configuration files that offer some default setting for the new options. This is what I need to see what is offered in the default assembly, and maybe I will use something.
The format or layout of the configs may also change, so I just want to bring my current configs up to date with the new examples.
Hence the question. How can I get (extract to some folder) the default configuration files from, for example, nginx? (i.e. I need the same files that would be registered in /etc/nginx after installing the package from scratch on a fresh system)

Answer the question

In order to leave comments, you need to log in

3 answer(s)
V
Vitaly Peretyatko, 2012-10-09
@viperet

using mc go to .deb and extract the configs from the folder

J
jov, 2012-10-09
@jov

 dpkg-deb --extract package.deb dir_to_extract

A
andyceo, 2012-10-10
@andyceo

Tried your ways, downloaded the packages from the repository with apt-get download, then extracted with dpkg-deb --extract. I also started mc and looked around the deb package - the listings of files in mc in the package are similar to those after extraction via dpkg-deb --extract. Here's what happened:

[email protected]:/tmp/experiments$ tree
.
├── nginx
│ └── usr
│ └── share
│ └── doc
│ └── nginx
│ ├── changelog.debian.gz
│ ├── CHANGES.gz -> changelog.gz
│ ├── copyright
│ └── README.Debian
├── nginx_1.1.19-1_all.deb
├── nginx-full
│ └── usr
│ ├── sbin
│ │ └── nginx
│ └── share
│ └── doc
│ └── nginx-full
│ ├── changelog.debian.gz
│ ├── CHANGES.gz -> changelog.gz
│ └── copyright
└── nginx-full_1.1.19-1_amd64.deb

There were no configs, and there are none :( Maybe they are somehow generated at the installation stage?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question