Ubuntu 源管理 && update upgrade dist-upgrade 区别

总目录 - Ubuntu 应用软件安装 && 开发环境搭建测试 目录

源管理命令

  • 配置文件路径 /etc/apt/sources.list
  • 添加仓库 add-apt-repository xxxadd-apt-repository ppa:fcitx-team/nightly
  • 更新源 apt-get update
  • 升级 apt-get upgrade
  • 智能升级 apt-get dist-upgrade

修改源为国内源

Ubuntu 配置APT源为国内源

apt的三种参数update upgrade dist-upgrade的区别

查看帮助信息apt-get --help

update - Retrieve new lists of packages
upgrade - Perform an upgrade
dist-upgrade - Distribution upgrade, see apt-get(8)
  • update 更新源
update is used to resynchronize the packageindex 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.
  • dist-upgrade 智能升级
dist-upgrade in addition to performing the function of upgrade, 
also intelligently handles changing dependencies with new versions of packages; 
apt-get has a"smart" conflict resolution system, 
and it will attempt to upgrade the most important packages 
at the expense of less important ones if necessary. 
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值