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

Ger*_*csy 0 options dpkg

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

那么这个选项究竟做了什么?对我来说闻起来像货物崇拜。

mur*_*uru 5

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

-p,-- priority =
   指定将显示的问题的最低优先级。dpkg-重新配置
   无论您的默认优先级是什么,通常都会显示低优先级的问题。看
   debconf (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.
Run Code Online (Sandbox Code Playgroud)

因此,-plow将显示所有问题,而不管其他地方可能设置了什么默认值。这可能是您想要的(这通常是想要的,当我运行时dpkg-reconfigure)。