diff options
Diffstat (limited to 'doc')
-rw-r--r-- | doc/apt-ftparchive.1.xml | 34 | ||||
-rw-r--r-- | doc/apt.conf.5.xml | 45 | ||||
-rw-r--r-- | doc/examples/apt-ftparchive.conf | 8 | ||||
-rw-r--r-- | doc/examples/configure-index | 10 |
4 files changed, 67 insertions, 30 deletions
diff --git a/doc/apt-ftparchive.1.xml b/doc/apt-ftparchive.1.xml index f478564d3..3dc6a6ceb 100644 --- a/doc/apt-ftparchive.1.xml +++ b/doc/apt-ftparchive.1.xml @@ -88,23 +88,26 @@ <varlistentry><term><option>release</option></term> <listitem><para> The <literal>release</literal> command generates a Release file from a - directory tree. It recursively searches the given directory for uncompressed - <filename>Packages</filename> and <filename>Sources</filename> files and ones - compressed with <command>gzip</command>, <command>bzip2</command> or <command>lzma</command> - as well as <filename>Release</filename> and <filename>md5sum.txt</filename> files by default - (<literal>APT::FTPArchive::Release::Default-Patterns</literal>). Additional filename patterns - can be added by listing them in <literal>APT::FTPArchive::Release::Patterns</literal>. - It then writes to stdout a <filename>Release</filename> file containing (by default) an MD5, + directory tree. It recursively searches the given directory for + uncompressed and compressed <filename>Packages</filename>, + <filename>Sources</filename>, <filename>Contents</filename>, + <filename>Components</filename> and <filename>icons</filename> files as + well as <filename>Release</filename>, <filename>Index</filename> and + <filename>md5sum.txt</filename> files by default + (<literal>APT::FTPArchive::Release::Default-Patterns</literal>). + Additional filename patterns can be added by listing them in + <literal>APT::FTPArchive::Release::Patterns</literal>. It then writes to + stdout a <filename>Release</filename> file containing (by default) an MD5, SHA1, SHA256 and SHA512 digest for each file.</para> <para> Values for the additional metadata fields in the Release file are taken from the corresponding variables under <literal>APT::FTPArchive::Release</literal>, - e.g. <literal>APT::FTPArchive::Release::Origin</literal>. The supported fields - are: <literal>Origin</literal>, <literal>Label</literal>, <literal>Suite</literal>, + e.g. <literal>APT::FTPArchive::Release::Origin</literal>. The supported fields + are <literal>Origin</literal>, <literal>Label</literal>, <literal>Suite</literal>, <literal>Version</literal>, <literal>Codename</literal>, <literal>Date</literal>, - <literal>Valid-Until</literal>, <literal>Architectures</literal>, - <literal>Components</literal>, <literal>Description</literal>.</para></listitem> + <literal>Valid-Until</literal>, <literal>Signed-By</literal>, <literal>Architectures</literal>, + <literal>Components</literal> and <literal>Description</literal>.</para></listitem> </varlistentry> @@ -177,10 +180,11 @@ <variablelist> <varlistentry><term><option>Packages::Compress</option></term> <listitem><para> - Sets the default compression schemes to use - for the package index files. It is a string that contains a space - separated list of at least one of: '.' (no compression), 'gzip' and - 'bzip2'. The default for all compression schemes is '. gzip'.</para></listitem> + Sets the default compression schemes to use + for the package index files. It is a string that contains a space + separated list of at least one of the compressors configured via the + <option>APT::Compressor</option> configuration scope. + The default for all compression schemes is '. gzip'.</para></listitem> </varlistentry> <varlistentry><term><option>Packages::Extensions</option></term> diff --git a/doc/apt.conf.5.xml b/doc/apt.conf.5.xml index 48ad9c026..215634e99 100644 --- a/doc/apt.conf.5.xml +++ b/doc/apt.conf.5.xml @@ -173,6 +173,29 @@ DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt";}; </para></listitem> </varlistentry> + <varlistentry><term><option>Compressor</option></term> + <listitem><para> + This scope defines which compression formats are supported, how compression + and decompression can be performed if support for this format isn't built + into apt directly and a cost-value indicating how costly it is to compress + something in this format. As an example the following configuration stanza + would allow apt to download and uncompress as well as create and store + files with the low-cost <literal>.reversed</literal> file extension which + it will pass to the command <command>rev</command> without additional + commandline parameters for compression and uncompression: +<informalexample><programlisting> +APT::Compressor::rev { + Name "rev"; + Extension ".reversed"; + Binary "rev"; + CompressArg {}; + UncompressArg {}; + Cost "10"; +}; +</programlisting></informalexample> + </para></listitem> + </varlistentry> + <varlistentry><term><option>Build-Profiles</option></term> <listitem><para> List of all build profiles enabled for build-dependency resolution, @@ -529,25 +552,25 @@ DPkg::Pre-Install-Pkgs {"/usr/sbin/dpkg-preconfigure --apt";}; <varlistentry><term><option>CompressionTypes</option></term> <listitem><para>List of compression types which are understood by the acquire methods. Files like <filename>Packages</filename> can be available in various compression formats. - By default the acquire methods can decompress <command>bzip2</command>, <command>lzma</command> - and <command>gzip</command> compressed files; with this setting more formats can be added - on the fly or the used method can be changed. The syntax for this is: + By default the acquire methods can decompress and recompress many common formats like <command>xz</command> and + <command>gzip</command>; with this scope the supported formats can be queried, modified + as well as support for more formats added (see also <option>APT::Compressor</option>). The syntax for this is: <synopsis>Acquire::CompressionTypes::<replaceable>FileExtension</replaceable> "<replaceable>Methodname</replaceable>";</synopsis> </para><para>Also, the <literal>Order</literal> subgroup can be used to define in which order the acquire system will try to download the compressed files. The acquire system will try the first and proceed with the next compression type in this list on error, so to prefer one over the other type - simply add the preferred type first - default types not already added will be implicitly appended + simply add the preferred type first - types not already added will be implicitly appended to the end of the list, so e.g. <synopsis>Acquire::CompressionTypes::Order:: "gz";</synopsis> can - be used to prefer <command>gzip</command> compressed files over <command>bzip2</command> and <command>lzma</command>. - If <command>lzma</command> should be preferred over <command>gzip</command> and <command>bzip2</command> the - configure setting should look like this: <synopsis>Acquire::CompressionTypes::Order { "lzma"; "gz"; };</synopsis> + be used to prefer <command>gzip</command> compressed files over all other compression formats. + If <command>xz</command> should be preferred over <command>gzip</command> and <command>bzip2</command> the + configure setting should look like this: <synopsis>Acquire::CompressionTypes::Order { "xz"; "gz"; };</synopsis> It is not needed to add <literal>bz2</literal> to the list explicitly as it will be added automatically.</para> <para>Note that the <literal>Dir::Bin::<replaceable>Methodname</replaceable></literal> - will be checked at run time. If this option has been set, the - method will only be used if this file exists; e.g. for the - <literal>bzip2</literal> method (the inbuilt) setting is: - <literallayout>Dir::Bin::bzip2 "/bin/bzip2";</literallayout> + will be checked at run time. If this option has been set and support for + this format isn't directly built into apt, the method will only be used if + this file exists; e.g. for the <literal>bzip2</literal> method (the + inbuilt) setting is: <literallayout>Dir::Bin::bzip2 "/bin/bzip2";</literallayout> Note also that list entries specified on the command line will be added at the end of the list specified in the configuration files, but before the default entries. To prefer a type in this case over the ones specified in the configuration files you can set the option direct - not in list style. diff --git a/doc/examples/apt-ftparchive.conf b/doc/examples/apt-ftparchive.conf index 0d245c0af..0e8bcb2ce 100644 --- a/doc/examples/apt-ftparchive.conf +++ b/doc/examples/apt-ftparchive.conf @@ -7,11 +7,11 @@ Dir { CacheDir "."; }; -// Create Packages, Packages.gz and Packages.bz2, remove what you don't need +// Create Packages, Packages.gz and Packages.xz, remove/add as needed Default { - Packages::Compress ". gzip bzip2"; - Sources::Compress ". gzip bzip2"; - Contents::Compress ". gzip bzip2"; + Packages::Compress ". gzip xz"; + Sources::Compress ". gzip xz"; + Contents::Compress ". gzip xz"; }; // Includes the main section. You can structure the directory tree under diff --git a/doc/examples/configure-index b/doc/examples/configure-index index 8e8110d94..dc579c394 100644 --- a/doc/examples/configure-index +++ b/doc/examples/configure-index @@ -88,6 +88,16 @@ APT Post-Invoke {"touch /var/lib/apt/post-update-stamp"; }; }; + // define a new supported compressor on the fly + APT::Compressor::rev { + Name "rev"; + Extension ".reversed"; + Binary "rev"; + CompressArg {}; + UncompressArg {}; + Cost "10"; + }; + Authentication { TrustCDROM "false"; // consider the CD-ROM always trusted |