[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Automating dpkg-reconfigure answers via a shell script



I'm currently working on automated disk installation for one of our internal project. I already managed to make all disk partitioning. file system creation and minimal debian system installation. I also managed to make apt use a set of packages pre-installed on the disk with well known versions (not direct downlaod from a debian mirror).


I use

1) dpkg --set-selection < myPackage file

then

2) dselect install

unfortunately, I then need to answer all configuration items and found no way to answer all the question automatically.

So my questions are :

A) Is there a better command than "dselect install" to start installation of pacakges. At leat one where I could specify to use all the defaults value for package first installation? (a la apt-get --assume-yes)

B) If this is feasible, I will then need to use dpkg-reconfigure to reconfigure packages where I do not want default values.

Unfortunately

(prompt) dpkg-reconfigure pakage <<EOF
answer1
answer2
answer3
EOF

does not work.

Any hint to make this?

Thanks for any help


--
   __
  /  `                          Eric Valette - Canon CRF
 /--   __  o _.                 Product Dev. Group Software Team Leader
(___, / (_(_(__                 Rue de la touche lambert
                                35517 Cesson-Sevigne  Cedex
                                FRANCE
Tel: +33 (0)2 99 87 68 91       Fax: +33 (0)2 99 84 11 30
E-mail: valette@crf.canon.fr    http://www.crf.canon.fr



Reply to: