/usr/share/doc/debian-policy/policy.html/ap-pkg-controlfields.html is in debian-policy 4.1.4.1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>4. Control files and their fields (from old Packaging Manual) — Debian Policy Manual v4.1.4.1</title>
<link rel="stylesheet" href="_static/nature.css" type="text/css" />
<link rel="stylesheet" href="_static/pygments.css" type="text/css" />
<script type="text/javascript">
var DOCUMENTATION_OPTIONS = {
URL_ROOT: './',
VERSION: '4.1.4.1',
COLLAPSE_INDEX: false,
FILE_SUFFIX: '.html',
HAS_SOURCE: true,
SOURCELINK_SUFFIX: '.txt'
};
</script>
<script type="text/javascript" src="_static/jquery.js"></script>
<script type="text/javascript" src="_static/underscore.js"></script>
<script type="text/javascript" src="_static/doctools.js"></script>
<link rel="index" title="Index" href="genindex.html" />
<link rel="search" title="Search" href="search.html" />
<link rel="next" title="5. Configuration file handling (from old Packaging Manual)" href="ap-pkg-conffiles.html" />
<link rel="prev" title="3. Source packages (from old Packaging Manual)" href="ap-pkg-sourcepkg.html" />
</head>
<body>
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="genindex.html" title="General Index"
accesskey="I">index</a></li>
<li class="right" >
<a href="ap-pkg-conffiles.html" title="5. Configuration file handling (from old Packaging Manual)"
accesskey="N">next</a> |</li>
<li class="right" >
<a href="ap-pkg-sourcepkg.html" title="3. Source packages (from old Packaging Manual)"
accesskey="P">previous</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">Debian Policy Manual v4.1.4.1</a> »</li>
</ul>
</div>
<div class="document">
<div class="documentwrapper">
<div class="bodywrapper">
<div class="body" role="main">
<div class="section" id="control-files-and-their-fields-from-old-packaging-manual">
<h1>4. Control files and their fields (from old Packaging Manual)<a class="headerlink" href="#control-files-and-their-fields-from-old-packaging-manual" title="Permalink to this headline">¶</a></h1>
<p>Many of the tools in the <code class="docutils literal"><span class="pre">dpkg</span></code> suite manipulate data in a common
format, known as control files. Binary and source packages have control
data as do the <code class="docutils literal"><span class="pre">.changes</span></code> files which control the installation of
uploaded files, and <code class="docutils literal"><span class="pre">dpkg</span></code>’s internal databases are in a similar
format.</p>
<div class="section" id="syntax-of-control-files">
<span id="s-sd-1"></span><h2>4.1. Syntax of control files<a class="headerlink" href="#syntax-of-control-files" title="Permalink to this headline">¶</a></h2>
<p>See <a class="reference internal" href="ch-controlfields.html#s-controlsyntax"><span class="std std-ref">Syntax of control files</span></a>.</p>
<p>It is important to note that there are several fields which are optional
as far as <code class="docutils literal"><span class="pre">dpkg</span></code> and the related tools are concerned, but which must
appear in every Debian package, or whose omission may cause problems.</p>
</div>
<div class="section" id="list-of-fields">
<span id="s-sd-2"></span><h2>4.2. List of fields<a class="headerlink" href="#list-of-fields" title="Permalink to this headline">¶</a></h2>
<p>See <a class="reference internal" href="ch-controlfields.html#s-controlfieldslist"><span class="std std-ref">List of fields</span></a>.</p>
<p>This section now contains only the fields that didn’t belong to the
Policy manual.</p>
<div class="section" id="filename-and-msdos-filename">
<span id="s-pkg-f-filename"></span><h3>4.2.1. <code class="docutils literal"><span class="pre">Filename</span></code> and <code class="docutils literal"><span class="pre">MSDOS-Filename</span></code><a class="headerlink" href="#filename-and-msdos-filename" title="Permalink to this headline">¶</a></h3>
<p>These fields in <code class="docutils literal"><span class="pre">Packages</span></code> files give the filename(s) of (the parts
of) a package in the distribution directories, relative to the root of
the Debian hierarchy. If the package has been split into several parts
the parts are all listed in order, separated by spaces.</p>
</div>
<div class="section" id="size-and-md5sum">
<span id="s-pkg-f-size"></span><h3>4.2.2. <code class="docutils literal"><span class="pre">Size</span></code> and <code class="docutils literal"><span class="pre">MD5sum</span></code><a class="headerlink" href="#size-and-md5sum" title="Permalink to this headline">¶</a></h3>
<p>These fields in <code class="docutils literal"><span class="pre">Packages</span></code> files give the size (in bytes, expressed in
decimal) and MD5 checksum of the file(s) which make(s) up a binary
package in the distribution. If the package is split into several parts
the values for the parts are listed in order, separated by spaces.</p>
</div>
<div class="section" id="status">
<span id="s-pkg-f-status"></span><h3>4.2.3. <code class="docutils literal"><span class="pre">Status</span></code><a class="headerlink" href="#status" title="Permalink to this headline">¶</a></h3>
<p>This field in <code class="docutils literal"><span class="pre">dpkg</span></code>’s status file records whether the user wants a
package installed, removed or left alone, whether it is broken
(requiring re-installation) or not and what its current state on the
system is. Each of these pieces of information is a single word.</p>
</div>
<div class="section" id="config-version">
<span id="s-pkg-f-config-version"></span><h3>4.2.4. <code class="docutils literal"><span class="pre">Config-Version</span></code><a class="headerlink" href="#config-version" title="Permalink to this headline">¶</a></h3>
<p>If a package is not installed or not configured, this field in
<code class="docutils literal"><span class="pre">dpkg</span></code>’s status file records the last version of the package which was
successfully configured.</p>
</div>
<div class="section" id="conffiles">
<span id="s-pkg-f-conffiles"></span><h3>4.2.5. <code class="docutils literal"><span class="pre">Conffiles</span></code><a class="headerlink" href="#conffiles" title="Permalink to this headline">¶</a></h3>
<p>This field in <code class="docutils literal"><span class="pre">dpkg</span></code>’s status file contains information about the
automatically-managed configuration files held by a package. This field
should <em>not</em> appear anywhere in a package!</p>
</div>
<div class="section" id="obsolete-fields">
<span id="s-sd-2-6"></span><h3>4.2.6. Obsolete fields<a class="headerlink" href="#obsolete-fields" title="Permalink to this headline">¶</a></h3>
<p>These are still recognized by <code class="docutils literal"><span class="pre">dpkg</span></code> but should not appear anywhere
any more.</p>
<dl class="docutils">
<dt><code class="docutils literal"><span class="pre">Revision</span></code>; <code class="docutils literal"><span class="pre">Package-Revision</span></code>; <code class="docutils literal"><span class="pre">Package_Revision</span></code></dt>
<dd>The Debian revision part of the package version was at one point in
a separate control field. This field went through several names.</dd>
<dt><code class="docutils literal"><span class="pre">Recommended</span></code></dt>
<dd>Old name for <code class="docutils literal"><span class="pre">Recommends</span></code>.</dd>
<dt><code class="docutils literal"><span class="pre">Optional</span></code></dt>
<dd>Old name for <code class="docutils literal"><span class="pre">Suggests</span></code>.</dd>
<dt><code class="docutils literal"><span class="pre">Class</span></code></dt>
<dd>Old name for <code class="docutils literal"><span class="pre">Priority</span></code>.</dd>
</dl>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="sphinxsidebar" role="navigation" aria-label="main navigation">
<div class="sphinxsidebarwrapper">
<h3><a href="index.html">Table Of Contents</a></h3>
<ul>
<li><a class="reference internal" href="#">4. Control files and their fields (from old Packaging Manual)</a><ul>
<li><a class="reference internal" href="#syntax-of-control-files">4.1. Syntax of control files</a></li>
<li><a class="reference internal" href="#list-of-fields">4.2. List of fields</a><ul>
<li><a class="reference internal" href="#filename-and-msdos-filename">4.2.1. <code class="docutils literal"><span class="pre">Filename</span></code> and <code class="docutils literal"><span class="pre">MSDOS-Filename</span></code></a></li>
<li><a class="reference internal" href="#size-and-md5sum">4.2.2. <code class="docutils literal"><span class="pre">Size</span></code> and <code class="docutils literal"><span class="pre">MD5sum</span></code></a></li>
<li><a class="reference internal" href="#status">4.2.3. <code class="docutils literal"><span class="pre">Status</span></code></a></li>
<li><a class="reference internal" href="#config-version">4.2.4. <code class="docutils literal"><span class="pre">Config-Version</span></code></a></li>
<li><a class="reference internal" href="#conffiles">4.2.5. <code class="docutils literal"><span class="pre">Conffiles</span></code></a></li>
<li><a class="reference internal" href="#obsolete-fields">4.2.6. Obsolete fields</a></li>
</ul>
</li>
</ul>
</li>
</ul>
<h4>Previous topic</h4>
<p class="topless"><a href="ap-pkg-sourcepkg.html"
title="previous chapter">3. Source packages (from old Packaging Manual)</a></p>
<h4>Next topic</h4>
<p class="topless"><a href="ap-pkg-conffiles.html"
title="next chapter">5. Configuration file handling (from old Packaging Manual)</a></p>
<div role="note" aria-label="source link">
<h3>This Page</h3>
<ul class="this-page-menu">
<li><a href="_sources/ap-pkg-controlfields.rst.txt"
rel="nofollow">Show Source</a></li>
</ul>
</div>
<div id="searchbox" style="display: none" role="search">
<h3>Quick search</h3>
<form class="search" action="search.html" method="get">
<div><input type="text" name="q" /></div>
<div><input type="submit" value="Go" /></div>
<input type="hidden" name="check_keywords" value="yes" />
<input type="hidden" name="area" value="default" />
</form>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
</div>
</div>
<div class="clearer"></div>
</div>
<div class="related" role="navigation" aria-label="related navigation">
<h3>Navigation</h3>
<ul>
<li class="right" style="margin-right: 10px">
<a href="genindex.html" title="General Index"
>index</a></li>
<li class="right" >
<a href="ap-pkg-conffiles.html" title="5. Configuration file handling (from old Packaging Manual)"
>next</a> |</li>
<li class="right" >
<a href="ap-pkg-sourcepkg.html" title="3. Source packages (from old Packaging Manual)"
>previous</a> |</li>
<li class="nav-item nav-item-0"><a href="index.html">Debian Policy Manual v4.1.4.1</a> »</li>
</ul>
</div>
<div class="footer" role="contentinfo">
Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.6.7.
</div>
</body>
</html>
|