dpkg-reconfigure 中的“-plow”选项有什么作用

dpkg-reconfigure 中的“-plow”选项有什么作用

我偶然发现了以下内容回答在 Unix stackexchange 上,该-plow选项与 一起使用dpkg-reconfigure,但我在 dpkg 或 dpkg-reconfigure 联机帮助页中找不到任何有关它的信息:

那么这个选项到底是做什么的呢?对我来说闻起来像货物崇拜。

答案1

您链接的联机帮助页dpkg-reconfigure

-p价值,- 优先事项=价值
   指定将显示的问题的最低优先级。 dpkg 重新配置
   无论您的默认优先级是什么,通常都会显示低优先级问题。看
   德布会议(7) 列出清单。

并从man 7 debconf

Another  nice feature of debconf is that the questions it asks you are prioritized. If you
don't want to be bothered about every little thing, you can set up debconf to only ask you
the most important questions.  On the other hand, if you are a control freak, you can make
it show you  all  questions.  Each  question  has  a  priority.  In  increasing  order  of
importance:

low    Very  trivial  questions  that have defaults that will work in the vast majority of
       cases.

medium Normal questions that have reasonable defaults.

high   Questions that don't have a reasonable default.

critical
       Questions that you really, really need to see (or else).

Only questions with a priority equal to or greater than the priority you  choose  will  be
shown  to  you. You can set the priority value by reconfiguring debconf, or temporarily by
passing  --priority=  followed  by  the  value  to  the  dpkg-reconfigure(8)   and   dpkg-
preconfigure(8) commands, or by setting the DEBIAN_PRIORITY environment variable.

因此,-plow将显示所有问题,无论其他地方可能设置了何种默认值。这可能是你想要的(这通常是想要,当我跑步时dpkg-reconfigure)。

相关内容