1 // $Id: apt.conf,v 1.36 1999/08/12 05:59:47 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
6 In some instances involving filenames it is possible to set the default
7 directory when the path is evaluated. This means you can use relative
8 paths within the sub scope.
10 The configuration directives are specified in a tree with {} designating
11 a subscope relative to the tag before the {}. You can further specify
12 a subscope using scope notation eg,
13 APT::Architecture "i386";
14 This is prefixed with the current scope. Scope notation must be used
15 if an option is specified on the command line with -o.
18 // Options for APT in general
23 // Options for apt-get
26 Download-Only "false";
29 Force-Yes "false"; // I would never set this.
32 Show-Upgraded "false";
54 // Some general options
56 Immediate-Configure "true"; // DO NOT turn this off, see the man page
57 Force-LoopBreak "false"; // DO NOT turn this on, see the man page
60 // Options for the downloading routines
63 Queue-Mode "host"; // host|access
66 // HTTP method configuration
69 Proxy "http://127.0.0.1:3128";
70 Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
73 // Cache Control. Note these do not work with Squid 2.0.2
75 Max-Age "86400"; // 1 Day age on index files
76 No-Store "false"; // Prevent the cache from storing archives
81 Proxy "ftp://127.0.0.1/";
82 Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
84 /* Required script to perform proxy login. This example should work
90 "USER $(SITE_USER)@$(SITE):$(SITE_PORT)";
96 /* Passive mode control, proxy, non-proxy and per-host. Pasv mode
97 is prefered if possible */
99 Proxy::Passive "true";
100 Passive::http.us.debian.org "true"; // Specific per-host setting
107 // You need the trailing slash!
119 // Location of the state dir
120 State "/var/state/apt/"
124 userstatus "status.user";
125 status "/var/lib/dpkg/status";
126 cdroms "cdroms.list";
129 // Location of the cache dir
130 Cache "/var/cache/apt/" {
131 archives "archives/";
132 srcpkgcache "srcpkgcache.bin";
133 pkgcache "pkgcache.bin";
138 sourcelist "sources.list";
142 // Locations of binaries
144 methods "/usr/lib/apt/methods/";
146 dpkg "/usr/bin/dpkg";
147 dpkg-source "/usr/bin/dpkg-source";
148 dpkg-buildpackage "/usr/bin/dpkg-buildpackage"
149 apt-get "/usr/bin/apt-get";
150 apt-cache "/usr/bin/apt-cache";
154 // Things that effect the APT dselect method
157 Clean "auto"; // always|auto|prompt|never
160 PromptAfterUpdate "no";
165 // Probably don't want to set this one..
166 Options {"--force-downgrade";}
168 // Auto re-mounting of a readonly /usr
169 Pre-Invoke {"mount -o remount,rw /usr";};
170 Post-Invoke {"mount -o remount,ro /usr";};
172 // Prevents daemons from getting cwd as something mountable (default)
175 // Build options for apt-get source --compile
176 Build-Options "-b -uc";
178 // Pre-configure all packages before they are installed using debconf.
179 Pre-Install-Pkgs {"dpkg-preconfig --apt --priority=low --frontend=dialog";};
182 /* Options you can set to see some debugging text They corrispond to names
183 of classes in the source code */
186 pkgProblemResolver "false";
188 pkgAcquire::Worker "false";
191 pkgInitialize "false"; // This one will dump the configuration space
193 Acquire::Ftp "false"; // Show ftp command traffic
194 aptcdrom "false"; // Show found package files