什么是 DEB?Debian 软件包格式解析

DEB是Debian和基于Ubuntu的Linux系统的二进制包格式,包含控制和数据tar包。

免费在线文件转换工具。在 Windows、macOS、Linux、Android 和 iOS 上的 Chrome、Firefox、Safari、Edge、Opera 及其他现代浏览器中运行。无需安装软件或注册。所有转换都直接在您的浏览器中进行,因此您的文件不会离开您的设备。免费使用,无需账户。

Archive

什么是 DEB?Debian 软件包格式解析

Debian 及基于 Debian 的 Linux 发行版的原生软件包格式。

最后更新:

Year1995
TypeSoftware package
UsageLinux software installation

What is it?

DEB is the binary package format used by Debian and Debian-derived Linux distributions such as Ubuntu. It bundles the files of a software program together with the metadata needed to install, configure, and remove it.

Since Debian 0.93, a .deb file is implemented as an ar archive containing three members in a fixed order: a debian-binary file giving the format version, a control.tar archive with package metadata and maintainer scripts, and a data.tar archive holding the actual files to install. The data and control tarballs are typically compressed with gzip or xz, and packages are managed by the dpkg tool and the APT front end.

Technical Specifications

DeveloperDebian Project
File Extension.deb
MIME Typeapplication/vnd.debian.binary-package
Released1995 (Debian 0.93)
TypeBinary software package

Pros & Cons

Advantages

丰富的元数据

Control information records dependencies, version, architecture, and maintainer scripts for reliable installation.

依赖管理

Works with APT to automatically resolve and install required dependent packages.

维护者脚本

Supports pre- and post-install and removal scripts to configure software cleanly.

标准工具

Installed, queried, and removed with the well-established dpkg and APT toolchain.

Disadvantages

特定于发行版

DEB is native to Debian-based systems and is not directly usable on RPM-based distributions.

依赖冲突

Installing packages outside the managed repositories can lead to unmet or conflicting dependencies.

手动安装缺乏解决方案

Using dpkg alone does not fetch dependencies the way APT does.

When to Use It

DEB is the backbone of software installation on Debian-family Linux systems.

发行版软件库

Debian and Ubuntu ship thousands of applications and libraries as signed DEB packages.

第三方软件

Vendors distribute applications such as browsers and editors as downloadable .deb files.

自定义打包

Developers package their own software as DEB files for controlled deployment across systems.

如何打开DEB文件

DEB文件主要与基于Debian的Linux发行版相关,存在多种软件工具来管理它们。这些工具可以分为专业应用程序、免费和开源软件、基于浏览器的实用程序和内置包管理器。专业工具通常面向开发人员和系统管理员,而免费/开源选项适合休闲用户和爱好者。

在选择用于处理DEB文件的工具时,有几个因素需要考虑。用户应考虑功能保真度、是否需要编辑或仅查看内容、软件的成本模型以及平台兼容性。此外,了解何时将DEB文件转换为其他格式对于特定用例可能至关重要。

GDebi 0.9.5

Linux免费(GPL)

GDebi是一个轻量级的DEB文件安装程序,旨在自动处理依赖关系。它允许用户查看包详细信息并无缝安装,确保所有所需的依赖关系得到解决。

主要功能
  • 安装期间的依赖关系解析
  • 包信息显示
  • 支持命令行界面
  • 用户友好的图形界面以便于使用
优点
  • 简单的界面以便于快速安装
  • 自动处理依赖关系
  • 轻量且快速的性能
局限
  • 仅限于基于Debian的系统
  • 没有高级编辑功能

可导出为: 不适用

适合: GDebi非常适合需要简单工具来安装DEB包并自动管理依赖关系的用户。

访问 GDebi →

dpkg 1.21.1

Linux免费(GPL)

dpkg是基于Debian系统的低级包管理器,允许用户直接安装、删除和管理DEB文件。它提供了对包管理的详细控制,使其成为系统管理员的强大工具。

主要功能
  • 安装和删除DEB包
  • 查询包信息
  • 管理包配置
  • 支持包验证
优点
  • 对包管理的全面控制
  • 广泛使用且文档齐全
  • 没有图形界面的干扰
局限
  • 初学者学习曲线较陡
  • 没有GUI以便于管理

可导出为: 不适用

适合: dpkg最适合需要对DEB包管理进行详细控制的经验丰富的用户和系统管理员。

访问 dpkg →

Alien 8.95

Linux免费(GPL)

Alien是一个命令行工具,可以将DEB包转换为其他格式,例如RPM或Slackware包。这对于需要在不同Linux发行版上安装软件的用户尤其有用。

主要功能
  • 将DEB转换为RPM和其他格式
  • 保留包元数据
  • 支持多种输入格式
  • 用于自动化的命令行界面
优点
  • 多功能的格式转换能力
  • 对跨发行版兼容性有用
  • 轻量且高效
局限
  • 需要命令行知识
  • 仅限于包转换

可导出为: RPM, TGZ, TXZ, TAR.GZ

适合: Alien非常适合需要将DEB包转换为不同Linux发行版的用户。

访问 Alien →

Synaptic Package Manager 0.84.6

Linux免费(GPL)

Synaptic是一个APT的图形包管理工具,允许用户以用户友好的界面安装、删除和管理DEB包。它提供了可用包及其依赖关系的全面视图。

主要功能
  • 用于包管理的图形界面
  • 搜索和过滤功能
  • 依赖关系管理和解析
  • 能够标记包以进行安装
优点
  • 用户友好的图形界面
  • 强大的搜索和过滤选项
  • 依赖关系的可视化表示
局限
  • 仅限于基于Debian的系统
  • 对新用户可能会造成困惑

可导出为: 不适用

适合: Synaptic非常适合喜欢使用图形界面管理DEB包并希望拥有全面包管理功能的用户。

访问 Synaptic Package Manager →

Convert DEB Files Free

Use our free online archive converter to convert DEB and other formats - no signup, no watermarks.

Try Archive Converter Free

References

  1. deb(5) - Debian Manpages
  2. deb (file format) - Wikipedia
  3. Chapter 5: Packaging System - The Debian Administrator's Handbook