]> git.saurik.com Git - apt.git/blame - doc/examples/apt.conf
Increased cache allocation
[apt.git] / doc / examples / apt.conf
CommitLineData
67db871e 1// $Id: apt.conf,v 1.41 1999/10/29 04:49:37 jgg Exp $
0a8e3465
AL
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
648e3cb4
AL
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
6 configuration.
93bf083d 7
6dd55be7 8 In some instances involving filenames it is possible to set the default
93bf083d
AL
9 directory when the path is evaluated. This means you can use relative
10 paths within the sub scope.
11
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.
0a8e3465
AL
18*/
19
93bf083d 20// Options for APT in general
78b558ca
AL
21APT
22{
0a8e3465
AL
23 Architecture "i386";
24
93bf083d 25 // Options for apt-get
78b558ca
AL
26 Get
27 {
0a8e3465
AL
28 Download-Only "false";
29 Simulate "false";
30 Assume-Yes "false";
78b558ca 31 Force-Yes "false"; // I would never set this.
0a8e3465 32 Fix-Broken "false";
30e1eab5 33 Fix-Missing "false";
0a8e3465 34 Show-Upgraded "false";
3d8fd174 35 No-Upgrade "false";
7d8afa39 36 Print-URIs "false";
fb0ee66e 37 Compile "false";
ab559b35 38 No-Download "false";
9df71a5b
AL
39 Purge "false";
40 List-Cleanup "true";
d150b09d
AL
41 ReInstall "false";
42 Trivial-Only "false";
43 No-Remove "false";
3d8fd174
AL
44 };
45
78b558ca
AL
46 Cache
47 {
3d8fd174 48 Important "false";
648e3cb4 49 AllVersions "false";
0a8e3465 50 };
78b558ca
AL
51
52 CDROM
53 {
3d8fd174
AL
54 Rename "false";
55 NoMount "false";
56 Fast "false";
57 NoAct "false";
58 };
59
93bf083d 60 // Some general options
2e90f6e0 61 Ignore-Hold "false";
c98b1307 62 Clean-Installed "true";
78b558ca 63 Immediate-Configure "true"; // DO NOT turn this off, see the man page
9d4c8f67 64 Force-LoopBreak "false"; // DO NOT turn this on, see the man page
67db871e 65 Cache-Limit "4194304";
0a8e3465
AL
66};
67
93bf083d 68// Options for the downloading routines
0a8a80e5
AL
69Acquire
70{
769f7e1a 71 Queue-Mode "host"; // host|access
2b154e53 72 Retries "0";
917ae805 73 Source-Symlinks "true";
22380cf2 74
c3c459fc
AL
75 // HTTP method configuration
76 http
22380cf2
AL
77 {
78 Proxy "http://127.0.0.1:3128";
c3c459fc 79 Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
2b154e53 80 Timeout "120";
5c2cb6e4
AL
81
82 // Cache Control. Note these do not work with Squid 2.0.2
83 No-Cache "false";
84 Max-Age "86400"; // 1 Day age on index files
85 No-Store "false"; // Prevent the cache from storing archives
c3c459fc 86 };
6d5dd02a
AL
87
88 ftp
89 {
90 Proxy "ftp://127.0.0.1/";
91 Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
92
78b558ca
AL
93 /* Required script to perform proxy login. This example should work
94 for tisfwtk */
6d5dd02a
AL
95 ProxyLogin
96 {
97 "USER $(PROXY_USER)";
98 "PASS $(PROXY_PASS)";
99 "USER $(SITE_USER)@$(SITE):$(SITE_PORT)";
100 "PASS $(SITE_PASS)";
101 };
102
103 Timeout "120";
78b558ca
AL
104
105 /* Passive mode control, proxy, non-proxy and per-host. Pasv mode
106 is prefered if possible */
6d5dd02a
AL
107 Passive "true";
108 Proxy::Passive "true";
78b558ca 109 Passive::http.us.debian.org "true"; // Specific per-host setting
6d5dd02a 110 };
dcc48266
AL
111
112 cdrom
113 {
6c907975
AL
114 Mount "/cdrom";
115
116 // You need the trailing slash!
117 "/cdrom/"
118 {
119 Mount "sleep 1000";
120 UMount "sleep 500";
121 }
dcc48266 122 };
0a8a80e5
AL
123};
124
93bf083d 125// Directory layout
0a8e3465
AL
126Dir
127{
93bf083d 128 // Location of the state dir
0a8e3465
AL
129 State "/var/state/apt/"
130 {
131 lists "lists/";
132 xstatus "xstatus";
133 userstatus "status.user";
42c90c42
AL
134 status "/var/lib/dpkg/status";
135 cdroms "cdroms.list";
0a8e3465
AL
136 };
137
93bf083d 138 // Location of the cache dir
0a8e3465
AL
139 Cache "/var/cache/apt/" {
140 archives "archives/";
141 srcpkgcache "srcpkgcache.bin";
142 pkgcache "pkgcache.bin";
143 };
144
93bf083d 145 // Config files
0a8e3465 146 Etc "/etc/apt/" {
93bf083d 147 sourcelist "sources.list";
0a8e3465
AL
148 main "apt.conf";
149 };
024835dc 150
93bf083d 151 // Locations of binaries
024835dc 152 Bin {
3d8fd174 153 methods "/usr/lib/apt/methods/";
93bf083d 154 gzip "/bin/gzip";
30e1eab5 155 dpkg "/usr/bin/dpkg";
fb0ee66e
AL
156 dpkg-source "/usr/bin/dpkg-source";
157 dpkg-buildpackage "/usr/bin/dpkg-buildpackage"
7a1b1f8b 158 apt-get "/usr/bin/apt-get";
53697617 159 apt-cache "/usr/bin/apt-cache";
024835dc 160 };
0a8e3465
AL
161};
162
c3c459fc 163// Things that effect the APT dselect method
78b558ca
AL
164DSelect
165{
dcc48266 166 Clean "auto"; // always|auto|prompt|never
7a1b1f8b
AL
167 Options "-f";
168 UpdateOptions "";
c217f42a 169 PromptAfterUpdate "no";
0a8e3465
AL
170}
171
78b558ca
AL
172DPkg
173{
648e3cb4
AL
174 // Probably don't want to use force-downgrade..
175 Options {"--force-overwrite";"--force-downgrade";}
78b558ca
AL
176
177 // Auto re-mounting of a readonly /usr
6dd55be7
AL
178 Pre-Invoke {"mount -o remount,rw /usr";};
179 Post-Invoke {"mount -o remount,ro /usr";};
78b558ca
AL
180
181 // Prevents daemons from getting cwd as something mountable (default)
87b11230 182 Run-Directory "/";
fb0ee66e
AL
183
184 // Build options for apt-get source --compile
185 Build-Options "-b -uc";
06b8cce6
AL
186
187 // Pre-configure all packages before they are installed using debconf.
188 Pre-Install-Pkgs {"dpkg-preconfig --apt --priority=low --frontend=dialog";};
6dd55be7
AL
189}
190
93bf083d
AL
191/* Options you can set to see some debugging text They corrispond to names
192 of classes in the source code */
78b558ca
AL
193Debug
194{
93bf083d 195 pkgProblemResolver "false";
0a8a80e5 196 pkgAcquire "false";
93bf083d 197 pkgAcquire::Worker "false";
30e1eab5 198 pkgDPkgPM "false";
93bf083d
AL
199
200 pkgInitialize "false"; // This one will dump the configuration space
78b558ca
AL
201 NoLocking "false";
202 Acquire::Ftp "false"; // Show ftp command traffic
c98b1307 203 Acquire::Http "false"; // Show http command traffic
6c907975 204 aptcdrom "false"; // Show found package files
0a8e3465 205}
c98b1307
AL
206
207/* Whatever you do, do not use this configuration file!! Take out ONLY
208 the portions you need */
648e3cb4 209This Is Not A Valid Config File