Заменить символ в файле на основе позиции

Формально эта строфа описываетВопросв терминологии 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.

0
04.03.2020, 16:55
1 ответ

Чтобы заменить байт со смещением 136828 на ?, вы можете выполнить:

printf '?' | dd bs=1 seek=136828 conv=notrunc of=thefile
2
28.04.2021, 23:21

Теги

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