~ubuntu-branches/debian/experimental/apt/experimental

« back to all changes in this revision

Viewing changes to doc/examples/configure-index

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2010-02-18 22:07:23 UTC
  • mfrom: (9.1.7 sid)
  • Revision ID: james.westby@ubuntu.com-20100218220723-zb7zdh6fmsmp30tr
Tags: 0.7.26~exp2
fix crash when LANGUAGE is not set

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
     Diff-Only "false";
56
56
     Tar-Only "false";
57
57
     Build-Dep-Automatic "true";
 
58
     Show-User-Simulation-Note "true";
58
59
  };
59
60
 
60
61
  Cache 
89
90
     TrustCDROM "false";            // consider the CDROM always trusted
90
91
  };
91
92
 
92
 
  GPGV
93
 
  {
94
 
     TrustedKeyring "/etc/apt/trusted.gpg";
95
 
  };
96
 
 
97
93
  // Some general options
98
94
  Ignore-Hold "false";
99
95
  Clean-Installed "true";
115
111
  // Keep the list of FDs open (normally apt closes all fds when it
116
112
  // does a ExecFork)
117
113
  Keep-Fds {};
 
114
 
 
115
  // control parameters for cron jobs by /etc/cron.daily/apt
 
116
  Periodic
 
117
  {
 
118
  BackupArchiveInterval "0";
 
119
  // - Backup after n-days if archive contents changed.(0=disable)
 
120
 
 
121
  BackupLevel "3";
 
122
  // - Backup level.(0=disable), 1 is invalid.
 
123
 
 
124
  // APT::Archives::MaxAge "0"; (old, deprecated)
 
125
  MaxAge "0"; // (new)
 
126
  // - Set maximum allowed age of a cache package file. If a cache 
 
127
  //   package file is older it is deleted (0=disable)
 
128
 
 
129
  // APT::Archives::MinAge "2"; (old, deprecated)
 
130
  MinAge "2"; // (new)
 
131
  // - Set minimum age of a package file. If a file is younger it
 
132
  //   will not be deleted (0=disable). Usefull to prevent races 
 
133
  //   and to keep backups of the packages for emergency.
 
134
 
 
135
  // APT::Archives::MaxSize "0"; (old, deprecated)
 
136
  MaxSize "0"; // (new)
 
137
  // - Set maximum size of the cache in MB (0=disable). If the cache
 
138
  //   is bigger, cached package files are deleted until the size
 
139
  //   requirement is met (the biggest packages will be deleted 
 
140
  //   first).
 
141
 
 
142
  Update-Package-Lists "0";
 
143
  // - Do "apt-get update" automatically every n-days (0=disable)
 
144
  //   
 
145
  Download-Upgradeable-Packages "0";
 
146
  // - Do "apt-get upgrade --download-only" every n-days (0=disable)
 
147
  //
 
148
  Unattended-Upgrade "0";
 
149
  // - Run the "unattended-upgrade" security upgrade script 
 
150
  //   every n-days (0=disabled)
 
151
  //   Requires the package "unattended-upgrades" and will write
 
152
  //   a log in /var/log/unattended-upgrades
 
153
  //
 
154
  AutocleanInterval "0";
 
155
  // - Do "apt-get autoclean" every n-days (0=disable)
 
156
 
 
157
  Verbose "0";
 
158
  // - Send report mail to root
 
159
  //   0:  no report             (or null string)
 
160
  //   1:  progress report       (actually any string)
 
161
  //   2:  + command outputs     (remove -qq, remove 2>/dev/null, add -d)
 
162
  //   3:  + trace on            
 
163
  };
118
164
};
119
165
 
120
166
// Options for the downloading routines
123
169
  Queue-Mode "host";       // host|access
124
170
  Retries "0";
125
171
  Source-Symlinks "true";
126
 
  
127
 
  Check-Valid-Until "true"; 
128
 
  Max-Default-Age::Debian-Security "7"; // Label specific configuration
129
172
 
130
173
  PDiffs "true";     // try to get the IndexFile diffs
131
 
  
 
174
  PDiffs::FileLimit "4"; // don't use diffs if we would need more than 4 diffs
 
175
  PDiffs::SizeLimit "50"; // don't use diffs if size of all patches excess
 
176
                          // 50% of the size of the original file
 
177
 
132
178
  // HTTP method configuration
133
179
  http 
134
180
  {
143
189
    Max-Age "86400";     // 1 Day age on index files
144
190
    No-Store "false";    // Prevent the cache from storing archives    
145
191
    Dl-Limit "7";        // 7Kb/sec maximum download rate
 
192
    User-Agent "Debian APT-HTTP/1.3";
146
193
  };
147
194
 
148
 
  // HTTPS method configuration:
149
 
  // - uses the http proxy config 
150
 
  // - uses the http cache-control values
151
 
  // - uses the http Dl-Limit values
152
 
  https 
 
195
 
 
196
 
 
197
  // HTTPS method configuration: uses the http
 
198
  // - proxy config
 
199
  // - cache-control values
 
200
  // - Dl-Limit, Timout, ... values
 
201
  // if not set explicit for https
 
202
  //
 
203
  // see /usr/share/doc/apt/examples/apt-https-method-example.conf.gz
 
204
  // for more examples
 
205
  https
153
206
  {
154
207
        Verify-Peer "false";
155
208
        SslCert "/etc/apt/some.pem";
156
 
        CaPath  "/etc/ssl/certs";
157
 
        Verify-Host" "true";
158
 
        AllowRedirect  "true";
 
209
        CaPath  "/etc/ssl/certs";
 
210
        Verify-Host" "true";
 
211
        AllowRedirect  "true";
 
212
 
 
213
        Timeout "120";
 
214
        AllowRedirect  "true";
 
215
 
 
216
        // Cache Control. Note these do not work with Squid 2.0.2
 
217
        No-Cache "false";
 
218
        Max-Age "86400";     // 1 Day age on index files
 
219
        No-Store "false";    // Prevent the cache from storing archives
 
220
        Dl-Limit "7";        // 7Kb/sec maximum download rate
 
221
 
 
222
        User-Agent "Debian APT-CURL/1.0";
159
223
  };
160
224
 
161
225
  ftp
184
248
  
185
249
  cdrom
186
250
  {
 
251
    // do auto detection of the cdrom mountpoint
 
252
    AutoDetect "true";
 
253
    
 
254
    // cdrom mountpoint (needs to be defined in fstab if AutoDetect is not used)
187
255
    mount "/cdrom";
188
256
 
189
257
    // You need the trailing slash!
198
266
  {
199
267
   Options {"--ignore-time-conflict";}  // not very useful on a normal system
200
268
  };
 
269
 
 
270
  CompressionTypes
 
271
  {
 
272
    bz2 "bzip2";
 
273
    lzma "lzma";
 
274
    gz "gzip";
 
275
 
 
276
    Order { "gz"; "lzma"; "bz2"; };
 
277
  };
 
278
 
 
279
  Languages
 
280
  {
 
281
     "environment";
 
282
     "de";
 
283
     "en";
 
284
     "none";
 
285
     "fr";
 
286
  };
201
287
};
202
288
 
203
289
// Directory layout
216
302
  // Location of the cache dir
217
303
  Cache "var/cache/apt/" {
218
304
     Archives "archives/";
 
305
     // backup directory created by /etc/cron.daily/apt
 
306
     Backup "backup/"; 
219
307
     srcpkgcache "srcpkgcache.bin";
220
308
     pkgcache "pkgcache.bin";     
221
309
  };
222
310
  
223
311
  // Config files
224
312
  Etc "etc/apt/" {
225
 
     SourceList "sources.list";
226
313
     Main "apt.conf";
227
 
     Preferences "preferences";     
 
314
     Netrc "auth.conf";
228
315
     Parts "apt.conf.d/";
 
316
     Preferences "preferences";
 
317
     PreferencesParts "preferences.d";
 
318
     SourceList "sources.list";
 
319
     SourceParts "sources.list.d";
 
320
     VendorList "vendors.list";
 
321
     VendorParts "vendors.list.d";
 
322
     Trusted "trusted.gpg";
 
323
     TrustedParts "trusted.gpg.d";
229
324
  };
230
325
  
231
326
  // Locations of binaries
243
338
  // Location of the logfile
244
339
  Log "var/log/apt" {
245
340
        Terminal "term.log";
 
341
        History "history.log";
 
342
  };
 
343
 
 
344
  // Media 
 
345
  Media 
 
346
  {
 
347
        // Media AutoDetect mount path
 
348
        MountPath "/media/apt";
 
349
  };
 
350
 
 
351
  // Media 
 
352
  Media 
 
353
  {
 
354
        // Media AutoDetect mount path
 
355
        MountPath "/media/apt";
246
356
  };
247
357
};
248
358
 
256
366
   CheckDir "no";
257
367
}
258
368
 
259
 
DPkg 
 
369
DPkg
260
370
{
 
371
   // let apt aggressivly use dpkg triggers
 
372
   NoTriggers "true";
 
373
   NoConfigure "true";
 
374
   ConfigurePending "true";
 
375
 
261
376
   // Probably don't want to use force-downgrade..
262
377
   Options {"--force-overwrite";"--force-downgrade";}
263
 
   
 
378
 
264
379
   // Auto re-mounting of a readonly /usr
265
380
   Pre-Invoke {"mount -o remount,rw /usr";};
266
381
   Post-Invoke {"mount -o remount,ro /usr";};
267
 
   
 
382
 
 
383
   Chroot-Directory "/";
 
384
 
268
385
   // Prevents daemons from getting cwd as something mountable (default)
269
386
   Run-Directory "/";
270
 
   
 
387
 
271
388
   // Build options for apt-get source --compile
272
389
   Build-Options "-b -uc";
273
390
 
291
408
Debug 
292
409
{
293
410
  pkgProblemResolver "false";
 
411
  pkgProblemResolver::ShowScores "false";
294
412
  pkgDepCache::AutoInstall "false"; // what packages apt install to satify dependencies
 
413
  pkgDepCache::Marker "false"; 
 
414
  pkgCacheGen "false";
295
415
  pkgAcquire "false";
296
416
  pkgAcquire::Worker "false";
297
417
  pkgAcquire::Auth "false";
308
428
  Acquire::gpgv "false";   // Show the gpgv traffic
309
429
  aptcdrom "false";        // Show found package files
310
430
  IdentCdrom "false";
 
431
  acquire::netrc "false";  // netrc parser
311
432
  
312
433
}
313
434