1APT-CONFIG(8)                         APT                        APT-CONFIG(8)
2
3
4

NAME

6       apt-config - APT Configuration Query program
7

SYNOPSIS

9       apt-config [--empty] [--format '%f "%v";%n'] [-o=config_string]
10                  [-c=config_file] {shell | dump | {-v | --version} |
11                  {-h | --help}}
12

DESCRIPTION

14       apt-config is an internal program used by various portions of the APT
15       suite to provide consistent configurability. It accesses the main
16       configuration file /etc/apt/apt.conf in a manner that is easy to use
17       for scripted applications.
18
19       Unless the -h, or --help option is given, one of the commands below
20       must be present.
21
22       shell
23           shell is used to access the configuration information from a shell
24           script. It is given pairs of arguments, the first being a shell
25           variable and the second the configuration value to query. As output
26           it lists shell assignment commands for each value present. In a
27           shell script it should be used as follows:
28
29               OPTS="-f"
30               RES=`apt-config shell OPTS MyApp::options`
31               eval $RES
32           This will set the shell environment variable $OPTS to the value of
33           MyApp::options with a default of -f.
34
35           The configuration item may be postfixed with a /[fdbi]. f returns
36           file names, d returns directories, b returns true or false and i
37           returns an integer. Each of the returns is normalized and verified
38           internally.
39
40       dump
41           Just show the contents of the configuration space.
42

OPTIONS

44       All command line options may be set using the configuration file, the
45       descriptions indicate the configuration option to set. For boolean
46       options you can override the config file by using something like
47       -f-,--no-f, -f=no or several other variations.
48
49       --empty
50           Include options which have an empty value. This is the default, so
51           use --no-empty to remove them from the output.
52
53       --format '%f "%v";%n'
54           Defines the output of each config option. %t will be replaced with
55           its individual name, %f with its full hierarchical name and %v with
56           its value. Use uppercase letters and special characters in the
57           value will be encoded to ensure that it can e.g. be safely used in
58           a quoted-string as defined by RFC822. Additionally %n will be
59           replaced by a newline, and %N by a tab. A % can be printed by using
60           %%.
61
62       -h, --help
63           Show a short usage summary.
64
65       -v, --version
66           Show the program version.
67
68       -c, --config-file
69           Configuration File; Specify a configuration file to use. The
70           program will read the default configuration file and then this
71           configuration file. If configuration settings need to be set before
72           the default configuration files are parsed specify a file with the
73           APT_CONFIG environment variable. See apt.conf(5) for syntax
74           information.
75
76       -o, --option
77           Set a Configuration Option; This will set an arbitrary
78           configuration option. The syntax is -o Foo::Bar=bar.  -o and
79           --option can be used multiple times to set different options.
80

SEE ALSO

82       apt.conf(5)
83

DIAGNOSTICS

85       apt-config returns zero on normal operation, decimal 100 on error.
86

BUGS

88       APT bug page[1]. If you wish to report a bug in APT, please see
89       /usr/share/doc/debian/bug-reporting.txt or the reportbug(1) command.
90

AUTHORS

92       Jason Gunthorpe
93
94       APT team
95

NOTES

97        1. APT bug page
98           http://bugs.debian.org/src:apt
99
100
101
102APT 2.7.6                      30 November 2013                  APT-CONFIG(8)
Impressum