X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/f3ceaca7a648f7d93fa88106910151e69f498801..c1ab34c75f7e98fa1a9686c7bc59e578e1ae9572:/doc/apt-config.8.xml?ds=sidebyside diff --git a/doc/apt-config.8.xml b/doc/apt-config.8.xml index d4d36891f..cf2e87c62 100644 --- a/doc/apt-config.8.xml +++ b/doc/apt-config.8.xml @@ -1,10 +1,9 @@ <?xml version="1.0" encoding="utf-8" standalone="no"?> -<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN" - "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [ - -<!ENTITY % aptent SYSTEM "apt.ent"> -%aptent; - +<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" + "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [ +<!ENTITY % aptent SYSTEM "apt.ent"> %aptent; +<!ENTITY % aptverbatiment SYSTEM "apt-verbatim.ent"> %aptverbatiment; +<!ENTITY % aptvendor SYSTEM "apt-vendor.ent"> %aptvendor; ]> <refentry> @@ -15,7 +14,7 @@ &apt-email; &apt-product; <!-- The last update date --> - <date>29 February 2004</date> + <date>2013-11-30T00:00:00Z</date> </refentryinfo> <refmeta> @@ -30,38 +29,26 @@ <refpurpose>APT Configuration Query program</refpurpose> </refnamediv> - <!-- Arguments --> - <refsynopsisdiv> - <cmdsynopsis> - <command>apt-config</command> - <arg><option>-hv</option></arg> - <arg><option>-o=<replaceable>config string</replaceable></option></arg> - <arg><option>-c=<replaceable>file</replaceable></option></arg> - <group choice="req"> - <arg>shell</arg> - <arg>dump</arg> - </group> - </cmdsynopsis> - </refsynopsisdiv> - + &synopsis-command-apt-config; + <refsect1><title>Description</title> <para><command>apt-config</command> is an internal program used by various portions of the APT suite to provide consistent configurability. It accesses the main configuration file <filename>/etc/apt/apt.conf</filename> in a - manner that is easy to use by scripted applications.</para> + manner that is easy to use for scripted applications.</para> <para>Unless the <option>-h</option>, or <option>--help</option> option is - given one of the commands below must be present. + given, one of the commands below must be present. </para> <variablelist> - <varlistentry><term>shell</term> + <varlistentry><term><option>shell</option></term> <listitem><para> - shell is used to access the configuration information from a shell - script. It is given pairs of arguments, the first being a shell - variable and the second the configuration value to query. As output - it lists a series of shell assignments commands for each present value. - In a shell script it should be used like: + shell is used to access the configuration information from a shell + script. It is given pairs of arguments, the first being a shell + variable and the second the configuration value to query. As output + it lists shell assignment commands for each value present. + In a shell script it should be used as follows: </para> <informalexample><programlisting> @@ -81,7 +68,7 @@ eval $RES </listitem> </varlistentry> - <varlistentry><term>dump</term> + <varlistentry><term><option>dump</option></term> <listitem><para> Just show the contents of the configuration space.</para> </listitem> @@ -94,7 +81,22 @@ eval $RES &apt-cmdblurb; <variablelist> - + <varlistentry> + <term><option>--empty</option></term> + <listitem><para>Include options which have an empty value. This is the default, so + use --no-empty to remove them from the output.</para></listitem> + </varlistentry> + + <varlistentry> + <term><option>--format '<replaceable>%f "%v";%n</replaceable>'</option></term> + <listitem><para>Defines the output of each config option. %t will be replaced with its individual name, + %f with its full hierarchical name and %v with its value. + Use uppercase letters and special characters in the value will be encoded to ensure that + it can e.g. be safely used in a quoted-string as defined by RFC822. Additionally + %n will be replaced by a newline, and %N by a tab. A % can be + printed by using %%.</para></listitem> + </varlistentry> + &apt-commonoptions; </variablelist>