]> git.saurik.com Git - apt-legacy.git/blame - doc/apt-config.8
Added iPhone headers to APT and fixed 301 results.
[apt-legacy.git] / doc / apt-config.8
CommitLineData
da6ee469
JF
1.\" Title: apt\-config
2.\" Author: Jason Gunthorpe
3.\" Generator: DocBook XSL Stylesheets v1.71.0 <http://docbook.sf.net/>
4.\" Date: 29 February 2004
5.\" Manual:
6.\" Source: Linux
7.\"
8.TH "APT\-CONFIG" "8" "29 February 2004" "Linux" ""
9.\" disable hyphenation
10.nh
11.\" disable justification (adjust text to left margin only)
12.ad l
13.SH "NAME"
14apt\-config \- APT Configuration Query program
15.SH "SYNOPSIS"
16.HP 11
17\fBapt\-config\fR [\fB\-hv\fR] [\fB\-o=\fR\fB\fIconfig\ string\fR\fR] [\fB\-c=\fR\fB\fIfile\fR\fR] {[shell] | [dump]}
18.SH "DESCRIPTION"
19.PP
20\fBapt\-config\fR
21is 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
23in a manner that is easy to use by scripted applications.
24.PP
25Unless the
26\fB\-h\fR, or
27\fB\-\-help\fR
28option is given one of the commands below must be present.
29.PP
30shell
31.RS 3n
32shell 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:
33.sp
34.RS 3n
35.nf
36OPTS="\-f"
37RES=`apt\-config shell OPTS MyApp::options`
38eval $RES
39.fi
40.RE
41This will set the shell environment variable $OPTS to the value of MyApp::options with a default of
42\fB\-f\fR.
43.sp
44The 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.
45.RE
46.PP
47dump
48.RS 3n
49Just show the contents of the configuration space.
50.RE
51.SH "OPTIONS"
52.PP
53All 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,
55\fB\-f=no\fR
56or several other variations.
57.PP
58\fB\-h\fR, \fB\-\-help\fR
59.RS 3n
60Show a short usage summary.
61.RE
62.PP
63\fB\-v\fR, \fB\-\-version\fR
64.RS 3n
65Show the program version.
66.RE
67.PP
68\fB\-c\fR, \fB\-\-config\-file\fR
69.RS 3n
70Configuration File; Specify a configuration file to use. The program will read the default configuration file and then this configuration file. See
71\fBapt.conf\fR(5)
72for syntax information.
73.RE
74.PP
75\fB\-o\fR, \fB\-\-option\fR
76.RS 3n
77Set a Configuration Option; This will set an arbitary configuration option. The syntax is
78\fB\-o Foo::Bar=bar\fR.
79.RE
80.SH "SEE ALSO"
81.PP
82\fBapt.conf\fR(5)
83.SH "DIAGNOSTICS"
84.PP
85\fBapt\-config\fR
86returns zero on normal operation, decimal 100 on error.
87.SH "BUGS"
88.PP
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
91or the
92\fBreportbug\fR(1)
93command.
94.SH "AUTHORS"
95.PP
96\fBJason Gunthorpe\fR
97.sp -1n
98.IP "" 3n
99Author.
100.PP
101\fBAPT team\fR
102.sp -1n
103.IP "" 3n
104Author.
105.SH "REFERENCES"
106.TP 3
1071.\ APT bug page
108\%http://bugs.debian.org/src:apt