Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

many and many and many times I see sudo dpkg-reconfigure foo what is that? seems to be configuration? but what is the relation between that and .conf file? is there any file which store this configuration. If you need example sudo dpkg-reconfigure postfix. I need some more description what I know is just it is for package configuration.

share|improve this question

1 Answer 1

up vote 5 down vote accepted

Packages (like postfix) may install or generate configuration files (files that usually go in the /etc folder). During this process, there may be options that can be changed by the user. On installation, you are usually asked to set these options. In the case of postfix, it involves what type of server you're running, the hostname, and allowed IP addresses (among other things).

If you wanted to change those options afterwards, though, you can use dpkg-reconfigure which only goes through the configuration files phase of the package, where you can change those options.

Note that not all packages have user-configurable options, so even if a package installs a configuration file in /etc, dpkg-reconfigure might not do anything.

share|improve this answer
5  
To find out which packages on the system are dpkg-reconfigure-able, you can run sudo debconf-show --listowners –  steeldriver Jul 6 at 19:08

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.