dpkg
dpkg
1. 官网
dpkg, a medium-level package manager for Debian
With dpkg --set-selections, you can set which packages are to be installed/removed etc, which gets done the next time you run apt-get dselect-upgrade
Why "medium-level"?
Below it, there's dpkg-deb, which performs lower-level action on .deb(binary) packages, such as reading the control information and directly extracting the contained files.
dpkg checks dependencies and will refuse to install a package whose dependencies aren't met, but it won't help you find and install those dependencies. You nedd a higher-level tool(e.g. aptitude, apt-get or dselect) for that.
dpkg, 对于Debian , 是一个 中级 包管理工具
使用 dpkg 设置选择, 你可以 安装/移除 哪个包, 还有 用于 下次 你运行 apt-get dselect-upgrade 命令, 要做的选项
为什么说是 中级 呢?
因为, 在它之下, 有 dpkg-deb, 被用来在 .deb 二进制包 上, 执行 更低级的 行为, 比如 读 控制信息 和 提取包含的文件
dpkg 检查依赖, 会 拒绝安装 那些缺少依赖的 包, 但是 它 不会 帮你 找 和 安装 那些依赖, 你需要 一个 更高级 的 工具, 比如 apt-get 来 找 和 安装 那些依赖
2. 百科
dpkg, Debian Packager
为 Debian, 专门开发的 套件管理系统, 方便软件的安装, 更新 及 移除,
所有源自 Debian 的 Linux发行版, 都使用 dpgk, 例如 Ubuntu, Knoppix等
Debian 和 Ubuntu, 同属于 Debian系
https://www.cnblogs.com/beyondx/p/15342159.html
dpkg, 是 Debian软件包管理器 的 基础, dpkg 和 rpm 相似, 同样被用于 安装, 卸载 和 供给 .deb 软件包相关的信息
参考链接
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· AI与.NET技术实操系列:向量存储与相似性搜索在 .NET 中的实现
· 基于Microsoft.Extensions.AI核心库实现RAG应用
· Linux系列:如何用heaptrack跟踪.NET程序的非托管内存泄露
· 开发者必知的日志记录最佳实践
· SQL Server 2025 AI相关能力初探
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律