Какой формат файла debconf config.dat?

Вы можете напрямую перечислить неустановленные пакеты с помощью aptitude:

aptitude search "!(~i)"

Вы также можете использовать более явную, но эквивалентную форму:

aptitude search "?not(?installed)"

Если вы хотите печатать только имена пакетов, вы можете добавить опцию формата:

 aptitude -F "%p" search "?not(?installed)"

Прочтите ссылку на поисковый запрос из aptitude , это полезно.

2
07.12.2018, 07:19
1 ответ

Формально эта строфа описываетВопросв терминологии debconf.

Что касается Template, то из текст документа соответствующего модуля Perl:

When a new template is created, a question is created with the same name as the template. This is to ensure that the template has at least one owner -- the question, and to make life easier for debconf users -- so they don't have to manually register that question.

The owner field, then, is actually used to set the owner of the question.

Вполне вероятно, что большинству пользователей debconf не нужно было создавать дополнительные вопросы на основе того же шаблона.

Чтобы понять часть Variables, вам нужно найти соответствующий шаблон. В этом случае profiles— это список вариантов (, см. /var/cache/debconf/templates.dat):

.
Name: libpam-runtime/profiles
Choices: ${profiles}
Choices-c: ${profile_names}
Description: PAM profiles to enable:
...

А изman 7 debconfэто экземпляр типа переменной select:

select A choice between one of a number of values. The choices must be specified in
       a  field  named  'Choices'.  Separate  the  possible  values with commas and
       spaces, like this:
         Choices: yes, no, maybe

Поле Choices-Cтесно связано:

DEBCONF_C_VALUES
      If this environment variable is set to 'true', the frontend will display the values
      in Choices-C fields (if present) of select and multiselect  templates  rather  than
      the descriptive values.
3
27.01.2020, 22:02

Теги

Похожие вопросы