1 // $Id: apt.conf,v 1.29 1999/04/03 01:05:25 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";
50 // Some general options
52 Immediate-Configure "true"; // DO NOT turn this off, see the man page
55 // Options for the downloading routines
58 Queue-Mode "host"; // host|access
61 // HTTP method configuration
64 Proxy "http://127.0.0.1:3128";
65 Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
68 // Cache Control. Note these do not work with Squid 2.0.2
70 Max-Age "86400"; // 1 Day age on index files
71 No-Store "false"; // Prevent the cache from storing archives
76 Proxy "ftp://127.0.0.1/";
77 Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
79 /* Required script to perform proxy login. This example should work
85 "USER $(SITE_USER)@$(SITE):$(SITE_PORT)";
91 /* Passive mode control, proxy, non-proxy and per-host. Pasv mode
92 is prefered if possible */
94 Proxy::Passive "true";
95 Passive::http.us.debian.org "true"; // Specific per-host setting
102 // You need the trailing slash!
114 // Location of the state dir
115 State "/var/state/apt/"
119 userstatus "status.user";
120 status "/var/lib/dpkg/status";
121 cdroms "cdroms.list";
124 // Location of the cache dir
125 Cache "/var/cache/apt/" {
126 archives "archives/";
127 srcpkgcache "srcpkgcache.bin";
128 pkgcache "pkgcache.bin";
133 sourcelist "sources.list";
137 // Locations of binaries
139 methods "/usr/lib/apt/methods/";
141 dpkg "/usr/bin/dpkg";
142 apt-get "/usr/bin/apt-get";
143 apt-cache "/usr/bin/apt-get";
147 // Things that effect the APT dselect method
150 Clean "auto"; // always|auto|prompt|never
153 PromptAfterUpdate "no";
158 // Probably don't want to set this one..
159 Options {"--force-downgrade";}
161 // Auto re-mounting of a readonly /usr
162 Pre-Invoke {"mount -o remount,rw /usr";};
163 Post-Invoke {"mount -o remount,ro /usr";};
165 // Prevents daemons from getting cwd as something mountable (default)
169 /* Options you can set to see some debugging text They corrispond to names
170 of classes in the source code */
173 pkgProblemResolver "false";
175 pkgAcquire::Worker "false";
178 pkgInitialize "false"; // This one will dump the configuration space
180 Acquire::Ftp "false"; // Show ftp command traffic
181 aptcdrom "false"; // Show found package files