I'm writing a small script to automate the task of setting up workstations in a non-profit organisation where I help out. The clients (all running Debian) need to be configured to authenticate users to a LDAP server and also mount nfs shares. This involes installing a few packages using apt and then editing a few text files. Being lazy I don't particularly want to have to do this for every client so I'm trying to write a script to do it for me.
What I'm after is a Perl interface to the debian apt mechanism, so I can grab a few debs, install them and then edit the config files. So far the only solution I can find is to use system() to call apt-get with the -y option to turn off prompts.
Any ideas?
Many thanks
Simon