1APT-CONFIG(8) apt-config APT-CONFIG(8)
2
3
4
6 apt-config - APT Configuration Query program
7
8
10 apt-config [options] [-o config=string] [-c=file] command
11
12
14 apt-config is an internal program used by various portions of the APT
15 suite to provide consistent configurability. It accesses the main con‐
16 figuration file /etc/apt/apt.conf(5) in a manner that is easy to use by
17 scripted applications.
18
19
21 Unless the -h, or --help option is given, one of the commands below
22 must be present.
23
24 shell Used to access the configuration information from a shell
25 script. It is given pairs of arguments, the first being a shell
26 variable and the second the configuration value to query. As
27 output it lists a series of shell assignments commands for each
28 present value. In a shell script it should be used like:
29
30 OPTS="-f"
31 RES=`apt-config shell OPTS MyApp::Options`
32 eval $RES
33
34 This will set the shell environment variable $OPTS to the value
35 of MyApp::Options with a default of -f. .IP The configuration
36 item may be postfixed with a /[fdbi]. f returns file names, d
37 returns directories, b returns true or false and i returns an
38 integer. Each of the returns is normalized and verified inter‐
39 nally.
40
41
42 dump Shows the contents of the configuration space.
43
44
46 All command-line options may be set using the configuration file, the
47 descriptions indicate the configuration option to set. For boolean
48 options you can override the config file by using something like
49 -f-,--no-f, -f=no or several other variations.
50
51
52 -h, --help
53 Show a short usage summary.
54
55
56 -v, --version
57 Show the program version.
58
59
60 -c, --config-file
61 Configuration File. Specify a configuration file to use. The
62 program will read the default configuration file and then this
63 configuration file. See apt.conf(5) for syntax information.
64
65
66 -o, --option
67 Set a Configuration Option. This will set an arbitrary configu‐
68 ration option. The syntax is -o Foo::Bar=bar.
69
70
72 apt.conf(5)
73
74
76 apt-config returns zero on normal operation, decimal 100 on error.
77
78
80 Reporting bugs in APT-RPM is best done in the APT-RPM mailinglist at
81 http://apt-rpm.org/mailinglist.shtml.
82
83
85 Maintainer and contributor information can be found in the credits page
86 http://apt-rpm.org/about.shtml of APT-RPM.
87
88
89
90APT-RPM 14 Jun 2006 APT-CONFIG(8)