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