1 // $Id: configure-index,v 1.8 2003/04/24 03:32:32 doogie 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
24 Build-Essential "build-essential";
26 // Options for apt-get
30 Download-Only "false";
33 Force-Yes "false"; // I would never set this.
36 Show-Upgraded "false";
53 RecruseDepends "false";
64 // Some general options
66 Clean-Installed "true";
67 Immediate-Configure "true"; // DO NOT turn this off, see the man page
68 Force-LoopBreak "false"; // DO NOT turn this on, see the man page
69 Cache-Limit "4194304";
73 // Options for the downloading routines
76 Queue-Mode "host"; // host|access
78 Source-Symlinks "true";
80 // HTTP method configuration
83 Proxy "http://127.0.0.1:3128";
84 Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
88 // Cache Control. Note these do not work with Squid 2.0.2
90 Max-Age "86400"; // 1 Day age on index files
91 No-Store "false"; // Prevent the cache from storing archives
96 Proxy "ftp://127.0.0.1/";
97 Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
99 /* Required script to perform proxy login. This example should work
103 "USER $(PROXY_USER)";
104 "PASS $(PROXY_PASS)";
105 "USER $(SITE_USER)@$(SITE):$(SITE_PORT)";
111 /* Passive mode control, proxy, non-proxy and per-host. Pasv mode
112 is prefered if possible */
114 Proxy::Passive "true";
115 Passive::http.us.debian.org "true"; // Specific per-host setting
122 // You need the trailing slash!
134 // Location of the state dir
139 userstatus "status.user";
140 status "/var/lib/dpkg/status";
141 cdroms "cdroms.list";
144 // Location of the cache dir
145 Cache "var/cache/apt/" {
146 archives "archives/";
147 srcpkgcache "srcpkgcache.bin";
148 pkgcache "pkgcache.bin";
153 sourcelist "sources.list";
155 preferences "preferences";
158 // Locations of binaries
160 methods "/usr/lib/apt/methods/";
162 dpkg "/usr/bin/dpkg";
163 dpkg-source "/usr/bin/dpkg-source";
164 dpkg-buildpackage "/usr/bin/dpkg-buildpackage"
165 apt-get "/usr/bin/apt-get";
166 apt-cache "/usr/bin/apt-cache";
170 // Things that effect the APT dselect method
173 Clean "auto"; // always|auto|prompt|never
176 PromptAfterUpdate "no";
182 // Probably don't want to use force-downgrade..
183 Options {"--force-overwrite";"--force-downgrade";}
185 // Auto re-mounting of a readonly /usr
186 Pre-Invoke {"mount -o remount,rw /usr";};
187 Post-Invoke {"mount -o remount,ro /usr";};
189 // Prevents daemons from getting cwd as something mountable (default)
192 // Build options for apt-get source --compile
193 Build-Options "-b -uc";
195 // Pre-configure all packages before they are installed using debconf.
196 Pre-Install-Pkgs {"dpkg-preconfigure --apt --priority=low --frontend=dialog";};
198 // Flush the contents of stdin before forking dpkg.
201 // Control the size of the command line passed to dpkg.
206 /* Options you can set to see some debugging text They correspond to names
207 of classes in the source code */
210 pkgProblemResolver "false";
212 pkgAcquire::Worker "false";
214 pkgOrderList "false";
216 pkgInitialize "false"; // This one will dump the configuration space
218 Acquire::Ftp "false"; // Show ftp command traffic
219 Acquire::Http "false"; // Show http command traffic
220 aptcdrom "false"; // Show found package files
223 /* Whatever you do, do not use this configuration file!! Take out ONLY
224 the portions you need! */
225 This Is Not A Valid Config File