debconf - Configure a .deb package

Author:Brian Coca

Synopsis

New in version 1.6.

Configure a .deb package using debconf-set-selections. Or just query existing selections.

Options

parameter required default choices comments
name yes
    Name of package to configure.
    question no
      A debconf configuration setting
      unseen no
        Do not set 'seen' flag when pre-seeding
        value no
          Value to set the configuration to
          vtype no
          • string
          • boolean
          • select
          • multiselect
          • note
          • text
          • password
          • title
          The type of the value supplied

          Note

          Requires debconf

          Note

          Requires debconf-utils

          Examples


          # Set default locale to fr_FR.UTF-8
          debconf: name=locales question='locales/default_environment_locale' value=fr_FR.UTF-8 vtype='select'
          
          # set to generate locales:
          debconf: name=locales question='locales/locales_to_be_generated'  value='en_US.UTF-8 UTF-8, fr_FR.UTF-8 UTF-8' vtype='multiselect'
          
          # Accept oracle license
          debconf: name='oracle-java7-installer' question='shared/accepted-oracle-license-v1-1' value='true' vtype='select'
          
          # Specifying package you can register/return the list of questions and current values
          debconf: name='tzdata'

          Note

          This module requires the command line debconf tools.

          Note

          A number of questions have to be answered (depending on the package). Use ‘debconf-show <package>’ on any Debian or derivative with the package installed to see questions/settings available.

          Table Of Contents

          Previous topic

          cron - Manage cron.d and crontab entries.

          Next topic

          facter - Runs the discovery program facter on the remote system