gpt4 book ai didi

upgrade - 更新和升级有什么区别?

转载 作者:行者123 更新时间:2023-12-02 06:37:45 28 4
gpt4 key购买 nike

在apt-get命令中,更新和升级的主要作用是什么?除了措辞之外,我没有看到任何区别。看起来更新是关于系统包的,而升级是关于软件包的。如果是这样,如何区分哪个是系统包,哪个是软件包?

最佳答案

来自man apt

  update
update is used to resynchronize the package index files from their
sources. The indexes of available packages are fetched from the
location(s) specified in /etc/apt/sources.list...

...

  upgrade
upgrade is used to install the newest versions of all packages
currently installed on the system from the sources enumerated in
/etc/apt/sources.list. Packages currently installed with new

简单来说:apt-get update 将更新apt 的数据库,即可用软件包的列表(以及版本的日期和编号)。其中 apt-get dist-upgrade 将升级系统中安装的所有软件包(...如果日期和/或版本不同)。

关于upgrade - 更新和升级有什么区别?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29475138/

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