How to Reinstall a Package with apt-get and Run Setup Scripts

aptUbuntu

So I installed mailutils (apt-get install mailutils) and when I did a nice little setup screen popped up and started asking me questions. I guess I screwed up and cancelled out before I had all the data I need to configure. Anyhow, how do I get it to rerun that setup script?

PBI

Best Answer

You can try with

dpkg-reconfigure -plow <PACKAGE>

This will ask again the configuration questions about the package. It may ask you to reconfigure related packages as well.