1 // $Id: configure-index,v 1.2 2000/05/13 01:52:59 jgg Exp $
2 /* This file is an index of all APT configuration directives. It should
3 NOT actually be used as a real config file, though it is a completely
4 valid file. Most of the options have sane default values, unless
5 you have specific needs you should NOT include arbitary items in a custom
8 In some instances involving filenames it is possible to set the default
9 directory when the path is evaluated. This means you can use relative
10 paths within the sub scope.
12 The configuration directives are specified in a tree with {} designating
13 a subscope relative to the tag before the {}. You can further specify
14 a subscope using scope notation eg,
15 APT::Architecture "i386";
16 This is prefixed with the current scope. Scope notation must be used
17 if an option is specified on the command line with -o.
20 // Options for APT in general
25 // Options for apt-get
28 Download-Only "false";
31 Force-Yes "false"; // I would never set this.
34 Show-Upgraded "false";
61 // Some general options
63 Clean-Installed "true";
64 Immediate-Configure "true"; // DO NOT turn this off, see the man page
65 Force-LoopBreak "false"; // DO NOT turn this on, see the man page
66 Cache-Limit "4194304";
69 // Options for the downloading routines
72 Queue-Mode "host"; // host|access
74 Source-Symlinks "true";
76 // HTTP method configuration
79 Proxy "http://127.0.0.1:3128";
80 Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
84 // Cache Control. Note these do not work with Squid 2.0.2
86 Max-Age "86400"; // 1 Day age on index files
87 No-Store "false"; // Prevent the cache from storing archives
92 Proxy "ftp://127.0.0.1/";
93 Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
95 /* Required script to perform proxy login. This example should work
100 "PASS $(PROXY_PASS)";
101 "USER $(SITE_USER)@$(SITE):$(SITE_PORT)";
107 /* Passive mode control, proxy, non-proxy and per-host. Pasv mode
108 is prefered if possible */
110 Proxy::Passive "true";
111 Passive::http.us.debian.org "true"; // Specific per-host setting
118 // You need the trailing slash!
130 // Location of the state dir
131 State "/var/state/apt/"
135 userstatus "status.user";
136 status "/var/lib/dpkg/status";
137 cdroms "cdroms.list";
140 // Location of the cache dir
141 Cache "/var/cache/apt/" {
142 archives "archives/";
143 srcpkgcache "srcpkgcache.bin";
144 pkgcache "pkgcache.bin";
149 sourcelist "sources.list";
153 // Locations of binaries
155 methods "/usr/lib/apt/methods/";
157 dpkg "/usr/bin/dpkg";
158 dpkg-source "/usr/bin/dpkg-source";
159 dpkg-buildpackage "/usr/bin/dpkg-buildpackage"
160 apt-get "/usr/bin/apt-get";
161 apt-cache "/usr/bin/apt-cache";
165 // Things that effect the APT dselect method
168 Clean "auto"; // always|auto|prompt|never
171 PromptAfterUpdate "no";
176 // Probably don't want to use force-downgrade..
177 Options {"--force-overwrite";"--force-downgrade";}
179 // Auto re-mounting of a readonly /usr
180 Pre-Invoke {"mount -o remount,rw /usr";};
181 Post-Invoke {"mount -o remount,ro /usr";};
183 // Prevents daemons from getting cwd as something mountable (default)
186 // Build options for apt-get source --compile
187 Build-Options "-b -uc";
189 // Pre-configure all packages before they are installed using debconf.
190 Pre-Install-Pkgs {"dpkg-preconfig --apt --priority=low --frontend=dialog";};
192 // Flush the contents of stdin before forking dpkg.
196 /* Options you can set to see some debugging text They corrispond to names
197 of classes in the source code */
200 pkgProblemResolver "false";
202 pkgAcquire::Worker "false";
205 pkgInitialize "false"; // This one will dump the configuration space
207 Acquire::Ftp "false"; // Show ftp command traffic
208 Acquire::Http "false"; // Show http command traffic
209 aptcdrom "false"; // Show found package files
212 /* Whatever you do, do not use this configuration file!! Take out ONLY
213 the portions you need! */
214 This Is Not A Valid Config File