1 // $Id: apt.conf,v 1.33 1999/05/24 03:39:37 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";
52 // Some general options
54 Immediate-Configure "true"; // DO NOT turn this off, see the man page
57 // Options for the downloading routines
60 Queue-Mode "host"; // host|access
63 // HTTP method configuration
66 Proxy "http://127.0.0.1:3128";
67 Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
70 // Cache Control. Note these do not work with Squid 2.0.2
72 Max-Age "86400"; // 1 Day age on index files
73 No-Store "false"; // Prevent the cache from storing archives
78 Proxy "ftp://127.0.0.1/";
79 Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
81 /* Required script to perform proxy login. This example should work
87 "USER $(SITE_USER)@$(SITE):$(SITE_PORT)";
93 /* Passive mode control, proxy, non-proxy and per-host. Pasv mode
94 is prefered if possible */
96 Proxy::Passive "true";
97 Passive::http.us.debian.org "true"; // Specific per-host setting
104 // You need the trailing slash!
116 // Location of the state dir
117 State "/var/state/apt/"
121 userstatus "status.user";
122 status "/var/lib/dpkg/status";
123 cdroms "cdroms.list";
126 // Location of the cache dir
127 Cache "/var/cache/apt/" {
128 archives "archives/";
129 srcpkgcache "srcpkgcache.bin";
130 pkgcache "pkgcache.bin";
135 sourcelist "sources.list";
139 // Locations of binaries
141 methods "/usr/lib/apt/methods/";
143 dpkg "/usr/bin/dpkg";
144 dpkg-source "/usr/bin/dpkg-source";
145 dpkg-buildpackage "/usr/bin/dpkg-buildpackage"
146 apt-get "/usr/bin/apt-get";
147 apt-cache "/usr/bin/apt-cache";
151 // Things that effect the APT dselect method
154 Clean "auto"; // always|auto|prompt|never
157 PromptAfterUpdate "no";
162 // Probably don't want to set this one..
163 Options {"--force-downgrade";}
165 // Auto re-mounting of a readonly /usr
166 Pre-Invoke {"mount -o remount,rw /usr";};
167 Post-Invoke {"mount -o remount,ro /usr";};
169 // Prevents daemons from getting cwd as something mountable (default)
172 // Build options for apt-get source --compile
173 Build-Options "-b -uc";
176 /* Options you can set to see some debugging text They corrispond to names
177 of classes in the source code */
180 pkgProblemResolver "false";
182 pkgAcquire::Worker "false";
185 pkgInitialize "false"; // This one will dump the configuration space
187 Acquire::Ftp "false"; // Show ftp command traffic
188 aptcdrom "false"; // Show found package files