]> git.saurik.com Git - apt.git/blob - doc/examples/apt.conf
Force-LoopBreak
[apt.git] / doc / examples / apt.conf
1 // $Id: apt.conf,v 1.36 1999/08/12 05:59:47 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 Force-LoopBreak "false"; // DO NOT turn this on, see the man page
58 };
59
60 // Options for the downloading routines
61 Acquire
62 {
63 Queue-Mode "host"; // host|access
64 Retries "0";
65
66 // HTTP method configuration
67 http
68 {
69 Proxy "http://127.0.0.1:3128";
70 Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
71 Timeout "120";
72
73 // Cache Control. Note these do not work with Squid 2.0.2
74 No-Cache "false";
75 Max-Age "86400"; // 1 Day age on index files
76 No-Store "false"; // Prevent the cache from storing archives
77 };
78
79 ftp
80 {
81 Proxy "ftp://127.0.0.1/";
82 Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
83
84 /* Required script to perform proxy login. This example should work
85 for tisfwtk */
86 ProxyLogin
87 {
88 "USER $(PROXY_USER)";
89 "PASS $(PROXY_PASS)";
90 "USER $(SITE_USER)@$(SITE):$(SITE_PORT)";
91 "PASS $(SITE_PASS)";
92 };
93
94 Timeout "120";
95
96 /* Passive mode control, proxy, non-proxy and per-host. Pasv mode
97 is prefered if possible */
98 Passive "true";
99 Proxy::Passive "true";
100 Passive::http.us.debian.org "true"; // Specific per-host setting
101 };
102
103 cdrom
104 {
105 Mount "/cdrom";
106
107 // You need the trailing slash!
108 "/cdrom/"
109 {
110 Mount "sleep 1000";
111 UMount "sleep 500";
112 }
113 };
114 };
115
116 // Directory layout
117 Dir
118 {
119 // Location of the state dir
120 State "/var/state/apt/"
121 {
122 lists "lists/";
123 xstatus "xstatus";
124 userstatus "status.user";
125 status "/var/lib/dpkg/status";
126 cdroms "cdroms.list";
127 };
128
129 // Location of the cache dir
130 Cache "/var/cache/apt/" {
131 archives "archives/";
132 srcpkgcache "srcpkgcache.bin";
133 pkgcache "pkgcache.bin";
134 };
135
136 // Config files
137 Etc "/etc/apt/" {
138 sourcelist "sources.list";
139 main "apt.conf";
140 };
141
142 // Locations of binaries
143 Bin {
144 methods "/usr/lib/apt/methods/";
145 gzip "/bin/gzip";
146 dpkg "/usr/bin/dpkg";
147 dpkg-source "/usr/bin/dpkg-source";
148 dpkg-buildpackage "/usr/bin/dpkg-buildpackage"
149 apt-get "/usr/bin/apt-get";
150 apt-cache "/usr/bin/apt-cache";
151 };
152 };
153
154 // Things that effect the APT dselect method
155 DSelect
156 {
157 Clean "auto"; // always|auto|prompt|never
158 Options "-f";
159 UpdateOptions "";
160 PromptAfterUpdate "no";
161 }
162
163 DPkg
164 {
165 // Probably don't want to set this one..
166 Options {"--force-downgrade";}
167
168 // Auto re-mounting of a readonly /usr
169 Pre-Invoke {"mount -o remount,rw /usr";};
170 Post-Invoke {"mount -o remount,ro /usr";};
171
172 // Prevents daemons from getting cwd as something mountable (default)
173 Run-Directory "/";
174
175 // Build options for apt-get source --compile
176 Build-Options "-b -uc";
177
178 // Pre-configure all packages before they are installed using debconf.
179 Pre-Install-Pkgs {"dpkg-preconfig --apt --priority=low --frontend=dialog";};
180 }
181
182 /* Options you can set to see some debugging text They corrispond to names
183 of classes in the source code */
184 Debug
185 {
186 pkgProblemResolver "false";
187 pkgAcquire "false";
188 pkgAcquire::Worker "false";
189 pkgDPkgPM "false";
190
191 pkgInitialize "false"; // This one will dump the configuration space
192 NoLocking "false";
193 Acquire::Ftp "false"; // Show ftp command traffic
194 aptcdrom "false"; // Show found package files
195 }