You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

116 lines
3.1 KiB

<?xml version="1.0" encoding="utf-8" standalone="no"?>
<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
"" [
<!ENTITY % aptent SYSTEM "apt.ent">
<!-- The last update date -->
<date>29 February 2004</date>
<refmiscinfo class="manual">APT</refmiscinfo>
<!-- Man page title -->
<refpurpose>APT Configuration Query program</refpurpose>
<!-- Arguments -->
<arg><option>-o=<replaceable>config string</replaceable></option></arg>
<group choice="req">
<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>
<para>Unless the <option>-h</option>, or <option>--help</option> option is
given one of the commands below must be present.
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:
RES=`apt-config shell OPTS MyApp::options`
eval $RES
<para>This will set the shell environment variable $OPTS to the value of
MyApp::options with a default of <option>-f</option>.</para>
<para>The configuration item may be postfixed with a /[fdbi]. f returns
file names, d returns directories, b returns true or false and i returns
an integer. Each of the returns is normalized and verified
Just show the contents of the configuration space.</para>
<refsect1><title>See Also</title>
<para><command>apt-config</command> returns zero on normal operation, decimal 100 on error.