ubuntude的apt-get update和apt-get upgrade区别

ubuntude的apt-get update和apt-get upgrade区别

  • apt-get update是同步 /etc/apt/sources.list 和 /etc/apt/sources.list.d 中列出的源的索引,这样才能获取到最新的软件包。 apt-get update只是更新了apt的资源列表,没有真正的对系统执行更新。

  • 如果需要安装更新,下载最新软件包,并替换系统上过时的软件。要使用apt-get upgrade来更新。


猜你喜欢

转载自blog.csdn.net/llf_cloud/article/details/82082279