Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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
To find out which packages on the system are dpkg-reconfigure-able, you can run sudo debconf-show --listowners – steeldriver Jul 6 '14 at 19:08

Your Answer


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.