Retry support
[ntk/apt.git] / doc / examples / apt.conf
1 // $Id: apt.conf,v 1.20 1999/01/30 08:08:54 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
4 valid file.
5
6 In some instances involing 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.
9
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.
16 */
17
18 // Options for APT in general
19 APT {
20 Architecture "i386";
21
22 // Options for apt-get
23 Get {
24 Download-Only "false";
25 Simulate "false";
26 Assume-Yes "false";
27 Force-Yes "false"; // I would never set this.
28 Fix-Broken "false";
29 Fix-Missing "false";
30 Show-Upgraded "false";
31 No-Upgrade "false";
32 Print-URIs "false";
33 };
34
35 Cache {
36 Important "false";
37 };
38
39 CDROM {
40 Rename "false";
41 NoMount "false";
42 Fast "false";
43 NoAct "false";
44 };
45
46 // Some general options
47 Ingore-Hold "false";
48 };
49
50 // Options for the downloading routines
51 Acquire
52 {
53 Queue-Mode "host"; // host|access
54 Retry "false";
55
56 // HTTP method configuration
57 http
58 {
59 Proxy "http://127.0.0.1:3128";
60 Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
61
62 // Cache Control. Note these do not work with Squid 2.0.2
63 No-Cache "false";
64 Max-Age "86400"; // 1 Day age on index files
65 No-Store "false"; // Prevent the cache from storing archives
66 };
67
68 cdrom
69 {
70 Mount "/cdrom";
71 };
72 };
73
74 // Directory layout
75 Dir
76 {
77 // Location of the state dir
78 State "/var/state/apt/"
79 {
80 lists "lists/";
81 xstatus "xstatus";
82 userstatus "status.user";
83 status "/var/lib/dpkg/status";
84 cdroms "cdroms.list";
85 };
86
87 // Location of the cache dir
88 Cache "/var/cache/apt/" {
89 archives "archives/";
90 srcpkgcache "srcpkgcache.bin";
91 pkgcache "pkgcache.bin";
92 };
93
94 // Config files
95 Etc "/etc/apt/" {
96 sourcelist "sources.list";
97 main "apt.conf";
98 };
99
100 // Locations of binaries
101 Bin {
102 methods "/usr/lib/apt/methods/";
103 gzip "/bin/gzip";
104 dpkg "/usr/bin/dpkg";
105 apt-get "/usr/bin/apt-get";
106 apt-cache "/usr/bin/apt-get";
107 };
108 };
109
110 // Things that effect the APT dselect method
111 DSelect {
112 Clean "auto"; // always|auto|prompt|never
113 Options "-f";
114 UpdateOptions "";
115 PromptAfterUpdate "no";
116 }
117
118 /* Options you can set to see some debugging text They corrispond to names
119 of classes in the source code */
120 Debug {
121 pkgProblemResolver "false";
122 pkgAcquire "false";
123 pkgAcquire::Worker "false";
124 pkgDPkgPM "false";
125
126 pkgInitialize "false"; // This one will dump the configuration space
127 NoLocking "false";
128 }