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