Как отобразить все apt-get Dpkg :: Options и текущие значения?

Маленькая кнопка внизу клавиатуры на ноутбуке (иногда чуть выше сенсорной панели) моя выглядит как W, но не является ключом Windows, если у вас есть эта маленькая кнопка, она включает и отключает вашу сенсорную панель. [ ! d0]

1
задан 18 October 2017 в 22:19

1 ответ

К сожалению, «apt-config dump» не перечисляет параметры dpkg, которые вы искали. «man dpkg» помог мне найти эту команду «-force-help», которая более специфична для определенных параметров «силы» dpkg, которые вам были интересны, но не для полного списка опций:

$ dpkg --force-help
dpkg forcing options - control behaviour when problems found:
  warn but continue:  --force-<thing>,<thing>,...
  stop with error:    --refuse-<thing>,<thing>,... | --no-force-<thing>,...
 Forcing things:
  [!] all                Set all force options
  [*] downgrade          Replace a package with a lower version
      configure-any      Configure any package which may help this one
      hold               Process incidental packages even when on hold
      not-root           Try to (de)install things even when not root
      bad-path           PATH is missing important programs, problems likely
      bad-verify         Install a package even if it fails authenticity check
      bad-version        Process even packages with wrong versions
      overwrite          Overwrite a file from one package with another
      overwrite-diverted Overwrite a diverted file with an undiverted version
  [!] overwrite-dir      Overwrite one package's directory with another's file
  [!] unsafe-io          Do not perform safe I/O operations when unpacking
  [!] confnew            Always use the new config files, don't prompt
  [!] confold            Always use the old config files, don't prompt
  [!] confdef            Use the default option for new config files if one
                         is available, don't prompt. If no default can be found,
                         you will be prompted unless one of the confold or
                         confnew options is also given
  [!] confmiss           Always install missing config files
  [!] confask            Offer to replace config files with no new versions
  [!] architecture       Process even packages with wrong or no architecture
  [!] breaks             Install even if it would break another package
  [!] conflicts          Allow installation of conflicting packages
  [!] depends            Turn all dependency problems into warnings
  [!] depends-version    Turn dependency version problems into warnings
  [!] remove-reinstreq   Remove packages which require installation
  [!] remove-essential   Remove an essential package

WARNING - use of options marked [!] can seriously damage your installation.
Forcing options marked [*] are enabled by default.
10
ответ дан 25 May 2018 в 01:34
  • 1
    Это полезно, так же как linux.die.net/man/1/dpkg (см. Раздел --force-*things*), однако ни один из них не показывает текущие установленные значения по запросу OP , – thom_nic 18 October 2017 в 21:50
  • 2
    Я должен был также упомянуть, что apt-config dump будет list Dpkg::Options, но только если некоторые установлены, например. в /etc/apt/apt.conf.d/. Южная Австралия askubuntu.com/a/104912/399010 – thom_nic 18 October 2017 в 22:01

Другие вопросы по тегам:

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