Daniel Jacobowitz's gcc 2.95 C++ patch
[apt.git] / doc / examples / apt.conf
1 // $Id: apt.conf,v 1.34 1999/07/10 05:32:26 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 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.
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 {
21 Architecture "i386";
22
23 // Options for apt-get
24 Get
25 {
26 Download-Only "false";
27 Simulate "false";
28 Assume-Yes "false";
29 Force-Yes "false"; // I would never set this.
30 Fix-Broken "false";
31 Fix-Missing "false";
32 Show-Upgraded "false";
33 No-Upgrade "false";
34 Print-URIs "false";
35 Compile "false";
36 No-Download "false";
37 Purge "false";
38 List-Cleanup "true";
39 };
40
41 Cache
42 {
43 Important "false";
44 };
45
46 CDROM
47 {
48 Rename "false";
49 NoMount "false";
50 Fast "false";
51 NoAct "false";
52 };
53
54 // Some general options
55 Ignore-Hold "false";
56 Immediate-Configure "true"; // DO NOT turn this off, see the man page
57 };
58
59 // Options for the downloading routines
60 Acquire
61 {
62 Queue-Mode "host"; // host|access
63 Retries "0";
64
65 // HTTP method configuration
66 http
67 {
68 Proxy "http://127.0.0.1:3128";
69 Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
70 Timeout "120";
71
72 // Cache Control. Note these do not work with Squid 2.0.2
73 No-Cache "false";
74 Max-Age "86400"; // 1 Day age on index files
75 No-Store "false"; // Prevent the cache from storing archives
76 };
77
78 ftp
79 {
80 Proxy "ftp://127.0.0.1/";
81 Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
82
83 /* Required script to perform proxy login. This example should work
84 for tisfwtk */
85 ProxyLogin
86 {
87 "USER $(PROXY_USER)";
88 "PASS $(PROXY_PASS)";
89 "USER $(SITE_USER)@$(SITE):$(SITE_PORT)";
90 "PASS $(SITE_PASS)";
91 };
92
93 Timeout "120";
94
95 /* Passive mode control, proxy, non-proxy and per-host. Pasv mode
96 is prefered if possible */
97 Passive "true";
98 Proxy::Passive "true";
99 Passive::http.us.debian.org "true"; // Specific per-host setting
100 };
101
102 cdrom
103 {
104 Mount "/cdrom";
105
106 // You need the trailing slash!
107 "/cdrom/"
108 {
109 Mount "sleep 1000";
110 UMount "sleep 500";
111 }
112 };
113 };
114
115 // Directory layout
116 Dir
117 {
118 // Location of the state dir
119 State "/var/state/apt/"
120 {
121 lists "lists/";
122 xstatus "xstatus";
123 userstatus "status.user";
124 status "/var/lib/dpkg/status";
125 cdroms "cdroms.list";
126 };
127
128 // Location of the cache dir
129 Cache "/var/cache/apt/" {
130 archives "archives/";
131 srcpkgcache "srcpkgcache.bin";
132 pkgcache "pkgcache.bin";
133 };
134
135 // Config files
136 Etc "/etc/apt/" {
137 sourcelist "sources.list";
138 main "apt.conf";
139 };
140
141 // Locations of binaries
142 Bin {
143 methods "/usr/lib/apt/methods/";
144 gzip "/bin/gzip";
145 dpkg "/usr/bin/dpkg";
146 dpkg-source "/usr/bin/dpkg-source";
147 dpkg-buildpackage "/usr/bin/dpkg-buildpackage"
148 apt-get "/usr/bin/apt-get";
149 apt-cache "/usr/bin/apt-cache";
150 };
151 };
152
153 // Things that effect the APT dselect method
154 DSelect
155 {
156 Clean "auto"; // always|auto|prompt|never
157 Options "-f";
158 UpdateOptions "";
159 PromptAfterUpdate "no";
160 }
161
162 DPkg
163 {
164 // Probably don't want to set this one..
165 Options {"--force-downgrade";}
166
167 // Auto re-mounting of a readonly /usr
168 Pre-Invoke {"mount -o remount,rw /usr";};
169 Post-Invoke {"mount -o remount,ro /usr";};
170
171 // Prevents daemons from getting cwd as something mountable (default)
172 Run-Directory "/";
173
174 // Build options for apt-get source --compile
175 Build-Options "-b -uc";
176 }
177
178 /* Options you can set to see some debugging text They corrispond to names
179 of classes in the source code */
180 Debug
181 {
182 pkgProblemResolver "false";
183 pkgAcquire "false";
184 pkgAcquire::Worker "false";
185 pkgDPkgPM "false";
186
187 pkgInitialize "false"; // This one will dump the configuration space
188 NoLocking "false";
189 Acquire::Ftp "false"; // Show ftp command traffic
190 aptcdrom "false"; // Show found package files
191 }