我最近得到了另一个问题的答案求助:“aptd” 占用了我的 CPU 最大容量吗?其中包括运行命令
sudo dpkg-reconfigure -phigh -a
和
sudo dpkg --configure -a
这一切似乎都很合理,但我对一些事情感到好奇。
这些旗帜是什么?它们代表dpkg-reconfigure
什么-phigh -a
意思?
它与 有何不同dpkg --configure
?
答案1
--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