最近,我得到了另一个问题的答案。帮助:“ aptd”正在使我的CPU耗尽吗?其中包括运行命令
sudo dpkg-reconfigure -phigh -a 
和
sudo dpkg --configure -a
一切似乎都合理,但我对某些事情感到好奇。
什么是dpkg-reconfigure和什么-phigh -a标志是什么意思?
dpkg --configure有何不同?
最近,我得到了另一个问题的答案。帮助:“ aptd”正在使我的CPU耗尽吗?其中包括运行命令
sudo dpkg-reconfigure -phigh -a 
和
sudo dpkg --configure -a
一切似乎都合理,但我对某些事情感到好奇。
什么是dpkg-reconfigure和什么-phigh -a标志是什么意思?
dpkg --configure有何不同?
Answers:
从 man dpkg
   --configure package...|-a|--pending
          Configure a package which has been unpacked but not yet  config‐
          ured.   If  -a  or  --pending  is  given instead of package, all
          unpacked but unconfigured packages are configured.
          Configuring consists of the following steps:
          1.  Unpack  the  conffiles, and at the same time back up the old
          conffiles, so that they can be restored if something goes wrong.
          2. Run postinst script, if provided by the package.
   dpkg-reconfigure - reconfigure an already installed package
   -pvalue, --priority=value
       Specify the minimum priority of question that will be displayed.
       dpkg-reconfigure normally shows low priority questions no matter
       what your default priority is. See debconf(7) for a list.
   -a, --all
       Reconfigure all installed packages that use debconf. Warning: this
       may take a long time.
在这里dpkg --configure -a将配置所有未打包但未配置的软件包。而dpkg-reconfigure -phigh -a将重新配置所有debconf优先使用的已安装软件包。