]> git.saurik.com Git - apt.git/blame - doc/apt-config.8.yo
Fixed a minor http bug and a bug in -d
[apt.git] / doc / apt-config.8.yo
CommitLineData
c5796672
AL
1mailto(apt@packages.debian.org)
2manpage(apt-config)(8)(14 Feb 1999)(apt)()
3manpagename(apt-config)(APT Configuration Query program)
4
5manpagesynopsis()
6apt-config command
7
8manpagedescription()
9bf(apt-config) is an internal program used by various portions of the APT
dedbcda0 10suite to provide consistent configurability. It accesses the main configuarion
c5796672
AL
11file /etc/apt/apt.conf in a manner that is easy to use by scripted
12applications.
13
14em(command) is one of:
15itemize(
16 it() shell
17)
18
19Unless the -h, or --help option is given one of the above commands
20must be present.
21
22startdit()
23dit(bf(shell))
24bf(shell) is used to access the configuration information from a shell script.
25It is given pairs of arguments, the first being a shell variable and the
26second the configuration value to query. As output it lists a series of shell
27assignments commands for each present value. In a shell script it should be
28used like:
29
30verb(
31OPTS="-f"
32
33RES=`apt-config shell OPTS MyApp::Options`
34
35eval $RES
36)
37
38This will set the shell environment variable $OPTS to the value of
39MyApp::Options with a default of -f.
40
e42eb508
AL
41If the configuration item to retrieve is prefixed with a / then it will
42be retrieved using filename mode which prepends base paths.
43
c5796672
AL
44enddit()
45
46manpageoptions()
47All command line options may be set using the configuration file, the
48descriptions indicate the configuration option to set. For boolean
49options you can override the config file by using something like bf(-f-),
50bf(--no-f), bf(-f=no) or several other variations.
51
52startdit()
53dit(bf(-h, --help))
54Show a short usage summary.
55
56dit(bf(-v, --version))
57Show the program verison.
58
59dit(bf(-c, --config-file))
60Configuration File; Specify a configuration file to use. bf(apt-get) will
61read the default configuration file and then this configuration file. See
62bf(apt.conf(5)) for syntax information.
63
64dit(bf(-o, --option))
65Set a Configuration Option; This will set an arbitary configuration option.
66The syntax is
67verb(-o Foo::Bar=bar)
68enddit()
69
70manpageseealso()
71apt.conf(5)
72
73manpagediagnostics()
74apt-config returns zero on normal operation, decimal 100 on error.
75
76manpagebugs()
77See http://bugs.debian.org/apt. If you wish to report a
78bug in bf(apt-config), please see bf(/usr/doc/debian/bug-reporting.txt)
79or the bf(bug(1)) command.
80
81manpageauthor()
82apt-get was written by the APT team <apt@packages.debian.org>.