Debian 維護者指南

# Debian 維護者指南

### Osamu Aoki

`<osamu@debian.org>`

### 楊博遠

Chinese zh-cn Translation (2017-2019) `<byang@debian.org>`

### Fonzie Huang

Chinese zh-cn Translation (2018) `<hxf.prc@gmail.com>`

### 鄭原真

Chinese zh-tw Translation (2019) `<ycheng.tw@gmail.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 維護者指南》（(No changelog) 2026-02-11）教材文件針對普通 Debian 使用者和未來的開發者，描述了使用 debmake 命令構建 Debian 套件的方法。

本指南注重描述現代的打包風格，同時提供了許多簡單的範例。

- POSIX shell 指令碼打包
- Python3 指令碼打包
- C 和 Makefile/Autotools/CMake
- 含有共享程式庫的多個二進位制套件的打包，等等。

本篇《Debian 維護者指南》可看作《Debian 新維護者手冊》的繼承文件。

|  | 章 1. 前言