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.

I'd like to install libpam-ldap to use ldap on a client machine and I was hopping to use

sudo apt-get install -qq libpam-ldap

to quietly install the package as part of a bash script used to configure a client once Ubuntu installs. However it still comes up with a blue screen gui asking for configuration information. Since I intend to just copy an existing /etc/ldap.conf file to overwrite the auto generated one I'd like to skip that step but don't know how.

How do you install a package and make it skip it's interactive configuration stage?

Thanks!!!

share|improve this question

2 Answers 2

up vote 2 down vote accepted

You need to set the debconf frontend to noninteractive:

 sudo DEBIAN_FRONTEND=noninteractive apt-get install -qq libpam-ldap
share|improve this answer
    
Thanks for your answer! Also, before I use it on a none test environment, is there a way to get a list of all config files the command normally makes so that I can make sure to override them? (The reason I ask is that I think it creates another config files besides /etc/ldap.conf?) –  Evan Dec 21 '10 at 23:24

You're looking for a way to configure debconf for unattended operation.

In the debconf manpage check out the section on "Unattended Package Installation". The same manpage has information about Priorities, which might let you be able to skip the question entirely.

I've set this up in the past with Puppet and preseeds but it's been a long time, hopefully this will at least get you on the right track.

share|improve this answer
    
Cool thanks, I'm going to look into more about unattended installs. –  Evan Dec 21 '10 at 23:22

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.