Debian 维护者指南

# Debian 维护者指南

### 青木 修

`<osamu@debian.org>`

### 杨博远

简体中文翻译 (2017-2019, 2024) `<byang@debian.org>`

### Fonzie Huang

简体中文翻译 (2018) `<hxf.prc@gmail.com>`

### xiao sheng wen(肖盛文)

简体中文翻译 (2021) `<atzlinux@sina.com>`

版权 © 2014-2026 Osamu Aoki

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

本指南在撰写过程中参考了以下几篇文档：

- “Making a Debian Package (AKA the Debmake Manual)”, 版权所有 © 1997 Jaldhar Vyas.
- “The New-Maintainer’s Debian Packaging Howto”, 版权所有 © 1997 Will Lowe.
- “Debian New Maintainers’ Guide”, 版权所有 © 1998-2002 Josip Rodin, 2005-2017 Osamu Aoki, 2010 Craig Small 以及 2010 Raphaël Hertzog。

本指南的最新版本应当可以在下列位置找到：

- 在 debmake-doc 软件包 中，以及
- 位于 Debian 文档网站。

摘要

本篇《Debian 维护者指南》（2026-07-10）教程文档面向普通 Debian 用户和未来的开发者，描述了使用 debmake 命令构建 Debian 软件包的方法。

本指南注重描述现代的打包风格，同时提供了许多简单的示例。

- POSIX shell 脚本打包
- Python3 脚本打包
- C 和 Makefile/Autotools/CMake
- 含有共享库的多个二进制软件包的打包，等等。

本篇《Debian 维护者指南》可看作《Debian 新维护者手册》的继承文档。

|  | 第 1 章 前言