apt-get 升级_如何Apt-Get更新,升级,远程升级,完整升级及其异同?

apt-get 升级

apt-get 升级

deb based distributions provide apt or apt-get to manage packages interactively and from network repositories. While updating packages update, upgrade or dist-upgrade can be used. But what is the difference between these two commands. In this tutorial, we will look at this issue.

基于deb的发行版提供apt或apt-get来交互式地管理软件包并从网络存储库中进行管理。 在更新软件包update ,可以使用upgradedist-upgrade 。 但是这两个命令之间有什么区别。 在本教程中,我们将研究这个问题。

公寓获取/公寓更新 (Apt-Get/Apt Update)

updatecommand will simply get the packages information from repositories. These repositories are remote internet sites that provide packages and their metadata. We will get metadata or package information and then compare it with locally installed or downloaded package information and metadata. This will not download any packages.

update命令将仅从存储库获取软件包信息。 这些存储库是提供程序包及其元数据的远程Internet站点。 我们将获取元数据或软件包信息,然后将其与本地安装或下载的软件包信息和元数据进行比较。 这不会下载任何软件包。

$ sudo apt update

公寓获取/公寓升级 (Apt-Get/Apt Upgrade)

The real update operation will be down with upgrade command. This command will download packages and upgrade accordingly. So upgrade command will be run after update command. We should have root privileges in order to completely update operation so we will use sudo before upgrade command.

真正的更新操作将通过upgrade命令关闭。 此命令将下载软件包并进行相应升级。 因此, upgrade命令将在update命令之后运行。 为了完全更新操作,我们应该具有root特权,因此在upgrade命令之前将使用sudo

$ sudo apt upgrade

Apt-Get / Apt Dist-Upgrade (Apt-Get/Apt Dist-Upgrade)

dist-upgrade command is very similar to upgrade command. This command will upgrade too but during the upgrade, there will be some prompts related to package configuration. In dist-upgrade this questions will be answered automatically by apt which will make our upgrade operation more easy and intelligent.

dist-upgrade命令与upgrade命令非常相似。 该命令也将升级,但是在升级过程中,将出现一些与软件包配置有关的提示。 在dist-upgrade此问题将由apt自动回答,这将使我们的升级操作更加轻松和智能。

$ sudo apt dist-upgrade

Apt-Get / Apt全面升级 (Apt-Get/Apt Full-Upgrade)

full-upgrade  is the same as dist-upgrade so we can use both command interchangeable.

full-upgradedist-upgrade相同,因此我们可以同时使用两个命令。

LEARN MORE  What Is APT (Advanced Package Tool) For Linux?
了解更多信息什么是Linux的APT(高级软件包工具)?

翻译自: https://www.poftut.com/apt-get-update-upgrade-dist-upgrade-full-upgrade-and-their-similarities-and-diffirencies/

apt-get 升级

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值