1 mailto(apt@packages.debian.org)
2 manpage(apt-config)(8)(14 Feb 1999)(apt)()
3 manpagename(apt-config)(APT Configuration Query program)
9 bf(apt-config) is an internal program used by various portions of the APT
10 suite to provide consistent configurability. It accesses the main configuarion
11 file /etc/apt/apt.conf in a manner that is easy to use by scripted
14 em(command) is one of:
20 Unless the -h, or --help option is given one of the above commands
25 bf(shell) is used to access the configuration information from a shell script.
26 It is given pairs of arguments, the first being a shell variable and the
27 second the configuration value to query. As output it lists a series of shell
28 assignments commands for each present value. In a shell script it should be
34 RES=`apt-config shell OPTS MyApp::Options`
39 This will set the shell environment variable $OPTS to the value of
40 MyApp::Options with a default of -f.
42 If the configuration item to retrieve is prefixed with a / then it will
43 be retrieved using filename mode which prepends base paths.
46 Just show the contents of the configuration space.
51 All command line options may be set using the configuration file, the
52 descriptions indicate the configuration option to set. For boolean
53 options you can override the config file by using something like bf(-f-),
54 bf(--no-f), bf(-f=no) or several other variations.
58 Show a short usage summary.
60 dit(bf(-v, --version))
61 Show the program verison.
63 dit(bf(-c, --config-file))
64 Configuration File; Specify a configuration file to use. bf(apt-get) will
65 read the default configuration file and then this configuration file. See
66 bf(apt.conf(5)) for syntax information.
69 Set a Configuration Option; This will set an arbitary configuration option.
78 apt-config returns zero on normal operation, decimal 100 on error.
81 See http://bugs.debian.org/apt. If you wish to report a
82 bug in bf(apt-config), please see bf(/usr/doc/debian/bug-reporting.txt)
83 or the bf(bug(1)) command.
86 apt-get was written by the APT team <apt@packages.debian.org>.