gpt4 book ai didi

debian - 命令 "aptitude upgrade"在 Debian 上执行完全升级还是安全升级?

转载 作者:行者123 更新时间:2023-12-01 11:27:03 24 4
gpt4 key购买 nike

命令aptitude full-upgradeaptitude safe-upgrade 都是documented ,包括 full-upgradedist-upgrade 别名。

但是,简单地 aptitude upgrade 也会以某种方式升级系统……它默认为哪种方式?另外我怎么会为自己找到这个? man aptitude upgrade 没有帮助。

最佳答案

source-code中可以看出(但不是文档),upgrade 确实是 safe-upgrade 的别名:

else if(!strcasecmp(argv[0], "full-upgrade") ||
!strcasecmp(argv[0], "dist-upgrade"))
{
default_action = cmdline_upgrade;
// [...]
upgrade_mode = full_upgrade;
// [...]
resolver_mode = resolver_mode_full;
}
else if(!strcasecmp(argv[0], "safe-upgrade") ||
!strcasecmp(argv[0], "upgrade"))
{
default_action = cmdline_upgrade;
// [...]
upgrade_mode = safe_upgrade;
// [...]
resolver_mode = resolver_mode_safe;
}

关于debian - 命令 "aptitude upgrade"在 Debian 上执行完全升级还是安全升级?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36409022/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com