man > deb-src-control(5)

🏷️ NAME

deb-src-control - Debian source packages' master control file format

πŸš€ Quick Reference

Use CaseCommand / FieldDescription
πŸ“„ Create a new source control filedebian/controlπŸ“ Master control file for Debian source packages, in deb822 format
🏷️ Set source package nameSource: <name>πŸ”€ Required field, must match changelog; lowercase alphanumeric, +-., min 2 chars
πŸ‘€ Define maintainerMaintainer: <fullname-email>πŸ“§ Recommended field, format Joe Bloggs <jbloggs@foo.com>
πŸ”— Add VCS repository linkVcs-Git: <url>🌐 URL of Version Control System (Git, Bzr, etc.)
πŸ“¦ List build dependenciesBuild-Depends: <pkg-list>πŸ”§ Required packages to build source; supports version qualifiers, arch restrictions
πŸ“¦πŸ“¦ Declare a binary packagePackage: <name> (in new paragraph)πŸ“₯ Required field for each binary package; must have Architecture and Description
πŸ› οΈ Build only for specific profilesBuild-Profiles: <restriction-formula>πŸ§ͺ Controls under which build profiles the binary package is generated
🧩 Add custom (user-defined) fieldsX<SBC>-Name: <value>✏️ Prefix with X + optional S/B/C + hyphen; stripped in output

πŸ“– SYNOPSIS

debian/control

πŸ“ DESCRIPTION

Each Debian source package contains the master Β«debian/controlΒ» file, and its deb822(5) format is a superset of the control file shipped in Debian binary packages, see deb-control(5).

This file contains at least 2 paragraphs, separated by a blank line. The first paragraph lists all information about the source package in general, while each following paragraph describes exactly one binary package. Each paragraph consists of at least one field. A field starts with a fieldname, such as Package or Section (case insensitive), followed by a colon, the body of the field (case sensitive unless stated otherwise) and a newline. Multi-line fields are also allowed, but each supplementary line, without a fieldname, should start with at least one space. The content of the multi-line fields is generally joined to a single line by the tools (except in the case of the Description field, see below). To insert empty lines into a multi-line field, insert a dot after the space. Lines starting with a β€˜#’ are treated as comments.

πŸ“¦ SOURCE FIELDS

πŸ“› Source: source-package-name (required)

πŸ‘€ Maintainer: fullname-email (recommended)

πŸ‘₯ Uploaders: fullname-email

πŸ“ Standards-Version: version-string

πŸ“ Description short-description long-description

🌐 Homepage: url

πŸ› Bugs: url

πŸ”‘ Rules-Requires-Root: no|binary-targets|impl-keywords

πŸ§ͺ Testsuite: name-list Testsuite-Triggers: package-list

πŸ”§ Vcs-Arch: url Vcs-Bzr: url Vcs-Cvs: url Vcs-Darcs: url Vcs-Git: url Vcs-Hg: url Vcs-Mtn: url Vcs-Svn: url

🌐 Vcs-Browser: url

🏷️ Origin: name

πŸ“‚ Section: section

⭐ Priority: priority

πŸ”¨ Build-Depends: package-list

πŸ”¨ Build-Depends-Arch: package-list

πŸ”¨ Build-Depends-Indep: package-list

🚫 Build-Conflicts: package-list

🚫 Build-Conflicts-Arch: package-list

🚫 Build-Conflicts-Indep: package-list

The syntax of the Build-Depends, Build-Depends-Arch and Build-Depends-Indep fields is a list of groups of alternative packages. Each group is a list of packages separated by vertical bar (or β€œpipe”) symbols, β€˜|’. The groups are separated by commas β€˜,’, and can end with a trailing comma that will be eliminated when generating the fields for deb-control(5) (since dpkg 1.10.14). Commas are to be read as β€œAND”, and pipes as β€œOR”, with pipes binding more tightly. Each package name is optionally followed by an architecture qualifier appended after a colon β€˜:’, optionally followed by a version number specification in parentheses β€˜(’ and β€˜)’, an architecture specification in square brackets β€˜[’ and β€˜]’, and a restriction formula consisting of one or more lists of profile names in angle brackets β€˜<’ and β€˜>’.

The syntax of the Build-Conflicts, Build-Conflicts-Arch and Build-Conflicts-Indep fields is a list of comma-separated package names, where the comma is read as an β€œAND”, and where the list can end with a trailing comma that will be eliminated when generating the fields for deb-control(5) (since dpkg 1.10.14). Specifying alternative packages using a β€œpipe” is not supported. Each package name is optionally followed by a version number specification in parentheses, an architecture specification in square brackets, and a restriction formula consisting of one or more lists of profile names in angle brackets.

An architecture qualifier name can be a real Debian architecture name (since dpkg 1.16.5), any (since dpkg 1.16.2) or native (since dpkg 1.16.5). If omitted, the default for Build-Depends fields is the current host architecture, the default for Build-Conflicts fields is any. A real Debian architecture name will match exactly that architecture for that package name, any will match any architecture for that package name if the package is marked with Multi-Arch: allowed, and native will match the current build architecture if the package is not marked with Multi-Arch: foreign.

A version number may start with a β€˜>>’, in which case any later version will match, and may specify or omit the Debian packaging revision (separated by a hyphen). Accepted version relationships are β€˜>>’ for greater than, β€˜<<’ for less than, β€˜>=’ for greater than or equal to, β€˜<=’ for less than or equal to, and β€˜=’ for equal to.

An architecture specification consists of one or more architecture names, separated by whitespace. Exclamation marks may be prepended to each of the names, meaning β€œNOT”.

A restriction formula consists of one or more restriction lists, separated by whitespace. Each restriction list is enclosed in angle brackets. Items in the restriction list are build profile names, separated by whitespace and can be prefixed with an exclamation mark, meaning β€œNOT”. A restriction formula represents a disjunctive normal form expression.

Note that dependencies on packages in the build-essential set can be omitted and that declaring build conflicts against them is impossible. A list of these packages is in the build-essential package.

πŸ“¦πŸ“¦ BINARY FIELDS

Note that the Priority, Section and Homepage fields can also be in a binary paragraph to override the global value from the source package.

πŸ“› Package: binary-package-name (required)

πŸ“¦ Package-Type: deb|udeb|type

πŸ–₯️ Architecture: arch|all|any (required)

πŸ§ͺ Build-Profiles: restriction-formula

πŸ›‘οΈ Protected: Byes|no Essential: yes|no Build-Essential: yes|no Multi-Arch: same|foreign|allowed|no Tag: tag-list Description: short-description (recommended)

πŸ”— Depends: package-list Pre-Depends: package-list Recommends: package-list Suggests: package-list Breaks: package-list Enhances: package-list Replaces: package-list Conflicts: package-list Provides: package-list Built-Using: package-list

πŸ–₯️ Subarchitecture: value Kernel-Version: value Installer-Menu-Item: value

🧩 USER-DEFINED FIELDS

It is allowed to add additional user-defined fields to the control file. The tools will ignore these fields. If you want the fields to be copied over to the output files, such as the binary packages, you need to use a custom naming scheme: the fields should start with an X, followed by zero or more of the letters SBC and a hyphen.

Note that the X[SBC]- prefixes are stripped when the fields are copied over to the output files. A field XC-Approved-By will appear as Approved-By in the changes file and will not appear in the binary or source package control files.

Take into account that these user-defined fields will be using the global namespace, which might at some point in the future collide with officially recognized fields. To avoid such potential situation you can prefix those fields with Private-, such as XB-Private-New-Field.

πŸ“‹ EXAMPLE

# Comment
Source: dpkg
Section: admin
Priority: required
Maintainer: Dpkg Developers <debian-dpkg AT lists.org>
# this field is copied to the binary and source packages
XBS-Upstream-Release-Status: stable
Homepage: https://wiki.debian.org/Teams/Dpkg
Vcs-Browser: https://git.dpkg.org/cgit/dpkg/dpkg.git
Vcs-Git: https://git.dpkg.org/git/dpkg/dpkg.git
Standards-Version: 3.7.3
Build-Depends: pkg-config, debhelper (>= 4.1.81),
 libselinux1-dev (>= 1.28-4) [!linux-any]

Package: dpkg-dev
Section: utils
Priority: optional
Architecture: all
# this is a custom field in the binary package
XB-Mentoring-Contact: Raphael Hertzog <hertzog AT debian.org>
Depends: dpkg (>= 1.14.6), perl5, perl-modules, cpio (>= 2.4.2-2),
 bzip2, lzma, patch (>= 2.2-1), make, binutils, libtimedate-perl
Recommends: gcc | c-compiler, build-essential
Suggests: gnupg, debian-keyring
Conflicts: dpkg-cross (<< 2.0.0), devscripts (<< 2.10.26)
Replaces: manpages-pl (<= 20051117-1)
Description: Debian package development tools
 This package provides the development tools (including dpkg-source)
 required to unpack, build and upload Debian source packages.
 .
 Most Debian source packages will require additional tools to build;
 for example, most packages need make and the C compiler gcc.

πŸ”— SEE ALSO

deb822(5), deb-control(5), deb-version(7), dpkg-source(1)

deb-src-control(5)
🏷️ NAME πŸš€ Quick Reference πŸ“– SYNOPSIS πŸ“ DESCRIPTION πŸ“¦ SOURCE FIELDS πŸ“¦πŸ“¦ BINARY FIELDS 🧩 USER-DEFINED FIELDS πŸ“‹ EXAMPLE πŸ”— SEE ALSO

Generated by phpman v4.9.26-5-g7740029 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-08-30 21:22 @216.73.217.135
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Valid XHTML 1.0 Transitional!Valid CSS!

^_top_^