1 // $Id: apt.conf,v 1.40 1999/10/28 05:54:46 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";
60 // Some general options
62 Clean-Installed "true";
63 Immediate-Configure "true"; // DO NOT turn this off, see the man page
64 Force-LoopBreak "false"; // DO NOT turn this on, see the man page
67 // Options for the downloading routines
70 Queue-Mode "host"; // host|access
72 Source-Symlinks "true";
74 // HTTP method configuration
77 Proxy "http://127.0.0.1:3128";
78 Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
81 // Cache Control. Note these do not work with Squid 2.0.2
83 Max-Age "86400"; // 1 Day age on index files
84 No-Store "false"; // Prevent the cache from storing archives
89 Proxy "ftp://127.0.0.1/";
90 Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
92 /* Required script to perform proxy login. This example should work
98 "USER $(SITE_USER)@$(SITE):$(SITE_PORT)";
104 /* Passive mode control, proxy, non-proxy and per-host. Pasv mode
105 is prefered if possible */
107 Proxy::Passive "true";
108 Passive::http.us.debian.org "true"; // Specific per-host setting
115 // You need the trailing slash!
127 // Location of the state dir
128 State "/var/state/apt/"
132 userstatus "status.user";
133 status "/var/lib/dpkg/status";
134 cdroms "cdroms.list";
137 // Location of the cache dir
138 Cache "/var/cache/apt/" {
139 archives "archives/";
140 srcpkgcache "srcpkgcache.bin";
141 pkgcache "pkgcache.bin";
146 sourcelist "sources.list";
150 // Locations of binaries
152 methods "/usr/lib/apt/methods/";
154 dpkg "/usr/bin/dpkg";
155 dpkg-source "/usr/bin/dpkg-source";
156 dpkg-buildpackage "/usr/bin/dpkg-buildpackage"
157 apt-get "/usr/bin/apt-get";
158 apt-cache "/usr/bin/apt-cache";
162 // Things that effect the APT dselect method
165 Clean "auto"; // always|auto|prompt|never
168 PromptAfterUpdate "no";
173 // Probably don't want to use force-downgrade..
174 Options {"--force-overwrite";"--force-downgrade";}
176 // Auto re-mounting of a readonly /usr
177 Pre-Invoke {"mount -o remount,rw /usr";};
178 Post-Invoke {"mount -o remount,ro /usr";};
180 // Prevents daemons from getting cwd as something mountable (default)
183 // Build options for apt-get source --compile
184 Build-Options "-b -uc";
186 // Pre-configure all packages before they are installed using debconf.
187 Pre-Install-Pkgs {"dpkg-preconfig --apt --priority=low --frontend=dialog";};
190 /* Options you can set to see some debugging text They corrispond to names
191 of classes in the source code */
194 pkgProblemResolver "false";
196 pkgAcquire::Worker "false";
199 pkgInitialize "false"; // This one will dump the configuration space
201 Acquire::Ftp "false"; // Show ftp command traffic
202 Acquire::Http "false"; // Show http command traffic
203 aptcdrom "false"; // Show found package files
206 /* Whatever you do, do not use this configuration file!! Take out ONLY
207 the portions you need */
208 This Is Not A Valid Config File