Linux-apt包管理工具

update

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

upgrade

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

显示软件源列表

1
sudo grep '^[^#]' /etc/apt/sources.list{,.d/*}

unstable, testing, stable

https://unix.stackexchange.com/questions/451968/how-to-revert-debian-from-testing-to-stable

常用命令

1
apt list --upgradable

Linux-apt包管理工具
https://dnacore.github.io/post/ccc71da1-26a3-4e9e-be9f-9ab9d9a9f583.html
作者
DNACore
发布于
2019年10月23日
更新于
2023年7月13日
许可协议