Home
Main website
Display Sidebar
Hide Ads
Recent Changes
View Source:
deb-control(5)
Edit
PageHistory
Diff
Info
LikePages
DEB-CONTROL !!!DEB-CONTROL NAME SYNOPSIS DESCRIPTION REQUIRED FIELDS OPTIONAL FIELDS EXAMPLE SEE ALSO ---- !!NAME deb-control - Debian packages' master control file format !!SYNOPSIS control !!DESCRIPTION Each Debian package contains the master `control' file, which contains a number of fields. Each field begins with a tag, such as __Package__ or __Version__ (case insensitive), followed by a colon, and the body of the field. Fields are delimited only by field tags. In other words, field text may be multiple lines in length, but the installation tools will generally join lines when processing the body of the field (except in the case of the __Description__ field, see below). !!REQUIRED FIELDS __Package:__ __ The value of this field determines the package name, and is used to generate file names by most installation tools. __Version:__ __ Typically, this is the original package's version number in whatever form the program's author uses. It may also include a Debian revision number (for non-native packages). If both version and revision are supplied, they are seperated by a hyphen, `-'. For this reason, the original version may not have a hyphen in its version number. __Maintainer:__ __ Should be in the format `Joe Bloggs __Description:__ __ The format for the package description is a short brief summary on the first line (after the !!OPTIONAL FIELDS __Section:__ __ This is a general field that gives the package a category based on the software that it installs. Some common sections are `utils', `net', `mail', `text', `x11' etc. __Priority:__ __ Sets the importance of this package in relation to the system as a whole. Common priorities are `required', `standard', `optional', `extra' etc. In Debian, the __Section__ and __Priority__ fields have a defined set of accepted values based on the Policy Manual. They are used to decide how the packages are layed out in the archive. A list of these can be obtained from the latest version of __debian-policy__ package. __Essential:__ __ This field is usually only needed when the answer is `yes'. It denotes a package that is required for proper operation of the system. Dpkg or any other installation tool will not allow an __Essential__ package to be removed (at least not without using one of the force options). __Architecture:__ __ The architecture specifies which type of hardware this package was compiled for. Common architectures are `i386', `m68k', `sparc', `alpha', `powerpc' etc. Note that the __all__ option is meant for packages that are architecture independent. Some examples of this are shell or Perl scripts, or documentation. __Source:__ __ The name of the source package that this binary package came from, if different than the name of the package itself. __Depends:__ __ List of packages that are required for this package to provide a non-trivial amount of functionality. The package maintenance software will not allow a package to be installed if the packages listed in its __Depends__ field aren't installed (at least not without using the force options), and will run the postinst scripts of packages listed in Depends: fields before those of the packages which depend on them, and run prerm scripts before. __Pre-Depends:__ __ List of packages that must be installed __and__ configured before this one can be installed. This is usually used in the case where this package requires another package for running its preinst script. __Recommends:__ __ Lists packages that would be found together with this one in all but unusual installations. The package maintenance software will warn the user if they install a package without those listed in its __Recommends__ field. __Suggests:__ __ Lists packages that are related to this one and can perhaps enhance its usefulness, but without which installing this package is perfectly reasonable. The syntax of __Depends , Pre-Depends , Recommends__ and __Suggests__ 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. Commas are to be read as `AND', and pipes as `OR', with pipes binding more tightly. Each item is a package name optionally followed by a version number specification in parentheses. A version number may start with a ` __Conflicts:__ __ Lists packages that conflict with this one, for example by containing files with the same names. The package maintenance software will not allow conflicting packages to be installed at the same time. Two conflicting packages should each include a __Conflicts__ line mentioning the other. __Replaces:__ __ List of packages from which this package is allowed to replace files. This is used for allowing this package to overwrite the files of another package and is usually used with the __Conflicts__ field to force removal of the other package, if this one also has the same files as the conflicted package. __Provides:__ __ This is a list of virtual packages that this one provides. Usuaully this is used in the case of several packages all providing the same service. For example, sendmail and exim can can serve as a mail server, so they provide a common package (`mail-transport-agent') on which other packages can depend. This will allow sendmail or exim to serve as a valid option to satisfy the dependency. This prevents the packages that depend on a mail server from having to know the package names for all of them, and using `|' to separate the list. The syntax of __Conflicts , Replaces__ and __Provides__ is a list of package names, separated by commas (and optional whitespace). In the __Conflicts__ field, the comma should be read as `OR'. An optional version can also be given with the same syntax as above for the __Conflicts__ and __Replaces__ fields. !!EXAMPLE Package: grep Essential: yes Priority: required Section: base Maintainer: Wichert Akkerman !!SEE ALSO deb(5), dpkg(8), dpkg-deb(1). ----
6 pages link to
deb-control(5)
:
Man5d
deb(5)
dpkg(8)
dpkg-deb(1)
dpkg-name(1)
dpkg-split(8)
This page is a man page (or other imported legacy content). We are unable to automatically determine the license status of this page.