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