收藏文章 楼主

ubuntu 故障 apt-get update 和 upgrade 的区别

版块:linux   类型:普通   作者:小绿叶技术博客   查看:512   回复:0   获赞:0   时间:2021-08-21 11:33:34

update

update 是同步 /etc/apt/sources.list 和 /etc/apt/sources.list.d 中列出的源的索引,这样才能获取到最新的软件包。



upgrade

upgrade 是升级已安装的所有软件包,升级之后的版本就是本地索引里的,因此,在执行 upgrade 之前一定要执行 update, 这样才能是最新的。


An update should always be performed before an upgrade or dist-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 versions available are retrieved and upgraded.


原文链接:https://blog.csdn.net/duyiwuer2009/article/details/26983267


Ubuntu16.04下升级Python到3.7: https://www.cnblogs.com/harry-xiaojun/p/10482881.html

提供企业建站服务,免费网防系统,提交信息登录 http://yundun.ddoss.cn 邮箱: proposal@ddoss.cn 
回复列表
默认   热门   正序   倒序

回复:ubuntu 故障 apt-get update 和 upgrade 的区别

头像

用户名:

粉丝数:

签名:

资料 关注 好友 消息