apt
⭐⭐Debian 系统包管理器,比 dpkg 包管理器更现代化。
➜ ~ sudo apt update
[sudo] soulio 的密码:
命中:1 https://packages.microsoft.com/repos/edge stable InRelease
获取:2 http://security.ubuntu.com/ubuntu noble-security InRelease [126 kB]
命中:3 https://packages.microsoft.com/repos/code stable InRelease
命中:4 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble InRelease
获取:5 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates InRelease [126 kB]
获取:6 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-backports InRelease [126 kB]
获取:7 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates/main amd64 Components [151 kB]
获取:8 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates/restricted amd64 Components [212 B]
获取:9 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates/universe amd64 Components [364 kB]
获取:10 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates/multiverse amd64 Components [940 B]
获取:11 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-backports/main amd64 Components [208 B]
获取:12 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-backports/restricted amd64 Components [212 B]
获取:13 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-backports/universe amd64 Components [20.0 kB]
获取:14 http://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-backports/multiverse amd64 Components [212 B]
命中:15 https://ppa.launchpadcontent.net/rodsmith/refind/ubuntu noble InRelease
获取:16 http://security.ubuntu.com/ubuntu noble-security/main amd64 Components [8,992 B]
获取:17 http://security.ubuntu.com/ubuntu noble-security/restricted amd64 Components [212 B]
获取:18 http://security.ubuntu.com/ubuntu noble-security/universe amd64 Components [51.9 kB]
获取:19 http://security.ubuntu.com/ubuntu noble-security/multiverse amd64 Components [208 B]
已下载 976 kB,耗时 5秒 (187 kB/s)
正在读取软件包列表... 完成
正在分析软件包的依赖关系树... 完成
正在读取状态信息... 完成
有 1 个软件包可以升级。请执行 ‘apt list --upgradable’ 来查看它们。
1. 简介
apt
命令是 Debian 和 Ubuntu 系统中用于管理软件包的工具。通过 apt
,用户可以轻松地安装、更新、卸载和管理软件包。它集成了多个功能,能够简化包管理过程。📦