2 .\" Author: Jason Gunthorpe
3 .\" Generator: DocBook XSL Stylesheets v1.71.0 <http://docbook.sf.net/>
4 .\" Date: 29 February 2004
8 .TH "APT\-CONFIG" "8" "29 February 2004" "Linux" ""
9 .\" disable hyphenation
11 .\" disable justification (adjust text to left margin only)
14 apt\-config \- APT Configuration Query program
17 \fBapt\-config\fR [\fB\-hv\fR] [\fB\-o=\fR\fB\fIconfig\ string\fR\fR] [\fB\-c=\fR\fB\fIfile\fR\fR] {[shell] | [dump]}
21 is an internal program used by various portions of the APT suite to provide consistent configurability. It accesses the main configuration file
22 \fI/etc/apt/apt.conf\fR
23 in a manner that is easy to use by scripted applications.
28 option is given one of the commands below must be present.
32 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:
37 RES=`apt\-config shell OPTS MyApp::options`
41 This will set the shell environment variable $OPTS to the value of MyApp::options with a default of
44 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 internally.
49 Just show the contents of the configuration space.
53 All command line options may be set using the configuration file, the descriptions indicate the configuration option to set. For boolean options you can override the config file by using something like
54 \fB\-f\-\fR,\fB\-\-no\-f\fR,
56 or several other variations.
58 \fB\-h\fR, \fB\-\-help\fR
60 Show a short usage summary.
63 \fB\-v\fR, \fB\-\-version\fR
65 Show the program version.
68 \fB\-c\fR, \fB\-\-config\-file\fR
70 Configuration File; Specify a configuration file to use. The program will read the default configuration file and then this configuration file. See
72 for syntax information.
75 \fB\-o\fR, \fB\-\-option\fR
77 Set a Configuration Option; This will set an arbitary configuration option. The syntax is
78 \fB\-o Foo::Bar=bar\fR.
86 returns zero on normal operation, decimal 100 on error.
89 [1]\&\fIAPT bug page\fR. If you wish to report a bug in APT, please see
90 \fI/usr/share/doc/debian/bug\-reporting.txt\fR
108 \%http://bugs.debian.org/src:apt