有什么区别:
- Remove - New -Unused-Dependencies,和
- 删除未使用的依赖项,
执行无人值守升级时?
以下清单摘自/etc/apt/apt.conf.d/50unattended-upgrades
Ubuntu 20.04 上无人值守升级 ( ) 的配置文件。
// Do automatic removal of newly unused dependencies after the upgrade
Unattended-Upgrade::Remove-New-Unused-Dependencies "true";
// Do automatic removal of unused packages after the upgrade
// (equivalent to apt-get autoremove)
//Unattended-Upgrade::Remove-Unused-Dependencies "false";
通读源代码,似乎“Unattended-Upgrade::Remove-New-Unused-Dependencies”只会删除在该无人参与升级调用期间创建的未使用依赖项,而“Unattended-Upgrade::Remove-Unused-Dependencies”将删除所有未使用的依赖项,无论它们何时创建。