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

标签 upgrade apt-get

在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/

相关文章:

ubuntu-11.04 - 在没有互联网的情况下使用 apt-get build essential

ubuntu - 如何将机器 A 上的所有软件包安装到机器 B 上?

ubuntu - 删除第二个 python 安装

linux - 在 apt-get upgrade 或 apt-get dist-upgrade 中强制不提示

windows-installer - InstallShield 由于卸载错误而失败

joomla - 升级到 Xampp 1.8.1 后,无法查看我的网站

linux - Red Hat Enterprise 5.9 上的 PostgreSQL 从 9.1 升级到 9.3

android - Android系统升级后应用偏好是否保留?

Wix ExePackage 并行安装而不卸载

linux - vim问题,我将其删除