Install the required package once manually, going through the configuration options you want. Then, do the following: $ sudo apt install debconf-utils $ sudo debconf-get-selections | grep MYPKG > MYPKG.CONF To be able to re-install MYPKG to a new machine… Read More