]>
Commit | Line | Data |
---|---|---|
648e3cb4 | 1 | // $Id: apt.conf,v 1.39 1999/10/22 04:05:48 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 | |
648e3cb4 AL |
4 | valid file. Most of the options have sane default values, unless |
5 | you have specific needs you should NOT include arbitary items in a custom | |
6 | configuration. | |
93bf083d | 7 | |
6dd55be7 | 8 | In some instances involving filenames it is possible to set the default |
93bf083d AL |
9 | directory when the path is evaluated. This means you can use relative |
10 | paths within the sub scope. | |
11 | ||
12 | The configuration directives are specified in a tree with {} designating | |
13 | a subscope relative to the tag before the {}. You can further specify | |
14 | a subscope using scope notation eg, | |
15 | APT::Architecture "i386"; | |
16 | This is prefixed with the current scope. Scope notation must be used | |
17 | if an option is specified on the command line with -o. | |
0a8e3465 AL |
18 | */ |
19 | ||
93bf083d | 20 | // Options for APT in general |
78b558ca AL |
21 | APT |
22 | { | |
0a8e3465 AL |
23 | Architecture "i386"; |
24 | ||
93bf083d | 25 | // Options for apt-get |
78b558ca AL |
26 | Get |
27 | { | |
0a8e3465 AL |
28 | Download-Only "false"; |
29 | Simulate "false"; | |
30 | Assume-Yes "false"; | |
78b558ca | 31 | Force-Yes "false"; // I would never set this. |
0a8e3465 | 32 | Fix-Broken "false"; |
30e1eab5 | 33 | Fix-Missing "false"; |
0a8e3465 | 34 | Show-Upgraded "false"; |
3d8fd174 | 35 | No-Upgrade "false"; |
7d8afa39 | 36 | Print-URIs "false"; |
fb0ee66e | 37 | Compile "false"; |
ab559b35 | 38 | No-Download "false"; |
9df71a5b AL |
39 | Purge "false"; |
40 | List-Cleanup "true"; | |
3d8fd174 AL |
41 | }; |
42 | ||
78b558ca AL |
43 | Cache |
44 | { | |
3d8fd174 | 45 | Important "false"; |
648e3cb4 | 46 | AllVersions "false"; |
0a8e3465 | 47 | }; |
78b558ca AL |
48 | |
49 | CDROM | |
50 | { | |
3d8fd174 AL |
51 | Rename "false"; |
52 | NoMount "false"; | |
53 | Fast "false"; | |
54 | NoAct "false"; | |
55 | }; | |
56 | ||
93bf083d | 57 | // Some general options |
2e90f6e0 | 58 | Ignore-Hold "false"; |
c98b1307 | 59 | Clean-Installed "true"; |
78b558ca | 60 | Immediate-Configure "true"; // DO NOT turn this off, see the man page |
9d4c8f67 | 61 | Force-LoopBreak "false"; // DO NOT turn this on, see the man page |
0a8e3465 AL |
62 | }; |
63 | ||
93bf083d | 64 | // Options for the downloading routines |
0a8a80e5 AL |
65 | Acquire |
66 | { | |
769f7e1a | 67 | Queue-Mode "host"; // host|access |
2b154e53 | 68 | Retries "0"; |
917ae805 | 69 | Source-Symlinks "true"; |
22380cf2 | 70 | |
c3c459fc AL |
71 | // HTTP method configuration |
72 | http | |
22380cf2 AL |
73 | { |
74 | Proxy "http://127.0.0.1:3128"; | |
c3c459fc | 75 | Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting |
2b154e53 | 76 | Timeout "120"; |
5c2cb6e4 AL |
77 | |
78 | // Cache Control. Note these do not work with Squid 2.0.2 | |
79 | No-Cache "false"; | |
80 | Max-Age "86400"; // 1 Day age on index files | |
81 | No-Store "false"; // Prevent the cache from storing archives | |
c3c459fc | 82 | }; |
6d5dd02a AL |
83 | |
84 | ftp | |
85 | { | |
86 | Proxy "ftp://127.0.0.1/"; | |
87 | Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting | |
88 | ||
78b558ca AL |
89 | /* Required script to perform proxy login. This example should work |
90 | for tisfwtk */ | |
6d5dd02a AL |
91 | ProxyLogin |
92 | { | |
93 | "USER $(PROXY_USER)"; | |
94 | "PASS $(PROXY_PASS)"; | |
95 | "USER $(SITE_USER)@$(SITE):$(SITE_PORT)"; | |
96 | "PASS $(SITE_PASS)"; | |
97 | }; | |
98 | ||
99 | Timeout "120"; | |
78b558ca AL |
100 | |
101 | /* Passive mode control, proxy, non-proxy and per-host. Pasv mode | |
102 | is prefered if possible */ | |
6d5dd02a AL |
103 | Passive "true"; |
104 | Proxy::Passive "true"; | |
78b558ca | 105 | Passive::http.us.debian.org "true"; // Specific per-host setting |
6d5dd02a | 106 | }; |
dcc48266 AL |
107 | |
108 | cdrom | |
109 | { | |
6c907975 AL |
110 | Mount "/cdrom"; |
111 | ||
112 | // You need the trailing slash! | |
113 | "/cdrom/" | |
114 | { | |
115 | Mount "sleep 1000"; | |
116 | UMount "sleep 500"; | |
117 | } | |
dcc48266 | 118 | }; |
0a8a80e5 AL |
119 | }; |
120 | ||
93bf083d | 121 | // Directory layout |
0a8e3465 AL |
122 | Dir |
123 | { | |
93bf083d | 124 | // Location of the state dir |
0a8e3465 AL |
125 | State "/var/state/apt/" |
126 | { | |
127 | lists "lists/"; | |
128 | xstatus "xstatus"; | |
129 | userstatus "status.user"; | |
42c90c42 AL |
130 | status "/var/lib/dpkg/status"; |
131 | cdroms "cdroms.list"; | |
0a8e3465 AL |
132 | }; |
133 | ||
93bf083d | 134 | // Location of the cache dir |
0a8e3465 AL |
135 | Cache "/var/cache/apt/" { |
136 | archives "archives/"; | |
137 | srcpkgcache "srcpkgcache.bin"; | |
138 | pkgcache "pkgcache.bin"; | |
139 | }; | |
140 | ||
93bf083d | 141 | // Config files |
0a8e3465 | 142 | Etc "/etc/apt/" { |
93bf083d | 143 | sourcelist "sources.list"; |
0a8e3465 AL |
144 | main "apt.conf"; |
145 | }; | |
024835dc | 146 | |
93bf083d | 147 | // Locations of binaries |
024835dc | 148 | Bin { |
3d8fd174 | 149 | methods "/usr/lib/apt/methods/"; |
93bf083d | 150 | gzip "/bin/gzip"; |
30e1eab5 | 151 | dpkg "/usr/bin/dpkg"; |
fb0ee66e AL |
152 | dpkg-source "/usr/bin/dpkg-source"; |
153 | dpkg-buildpackage "/usr/bin/dpkg-buildpackage" | |
7a1b1f8b | 154 | apt-get "/usr/bin/apt-get"; |
53697617 | 155 | apt-cache "/usr/bin/apt-cache"; |
024835dc | 156 | }; |
0a8e3465 AL |
157 | }; |
158 | ||
c3c459fc | 159 | // Things that effect the APT dselect method |
78b558ca AL |
160 | DSelect |
161 | { | |
dcc48266 | 162 | Clean "auto"; // always|auto|prompt|never |
7a1b1f8b AL |
163 | Options "-f"; |
164 | UpdateOptions ""; | |
c217f42a | 165 | PromptAfterUpdate "no"; |
0a8e3465 AL |
166 | } |
167 | ||
78b558ca AL |
168 | DPkg |
169 | { | |
648e3cb4 AL |
170 | // Probably don't want to use force-downgrade.. |
171 | Options {"--force-overwrite";"--force-downgrade";} | |
78b558ca AL |
172 | |
173 | // Auto re-mounting of a readonly /usr | |
6dd55be7 AL |
174 | Pre-Invoke {"mount -o remount,rw /usr";}; |
175 | Post-Invoke {"mount -o remount,ro /usr";}; | |
78b558ca AL |
176 | |
177 | // Prevents daemons from getting cwd as something mountable (default) | |
87b11230 | 178 | Run-Directory "/"; |
fb0ee66e AL |
179 | |
180 | // Build options for apt-get source --compile | |
181 | Build-Options "-b -uc"; | |
06b8cce6 AL |
182 | |
183 | // Pre-configure all packages before they are installed using debconf. | |
184 | Pre-Install-Pkgs {"dpkg-preconfig --apt --priority=low --frontend=dialog";}; | |
6dd55be7 AL |
185 | } |
186 | ||
93bf083d AL |
187 | /* Options you can set to see some debugging text They corrispond to names |
188 | of classes in the source code */ | |
78b558ca AL |
189 | Debug |
190 | { | |
93bf083d | 191 | pkgProblemResolver "false"; |
0a8a80e5 | 192 | pkgAcquire "false"; |
93bf083d | 193 | pkgAcquire::Worker "false"; |
30e1eab5 | 194 | pkgDPkgPM "false"; |
93bf083d AL |
195 | |
196 | pkgInitialize "false"; // This one will dump the configuration space | |
78b558ca AL |
197 | NoLocking "false"; |
198 | Acquire::Ftp "false"; // Show ftp command traffic | |
c98b1307 | 199 | Acquire::Http "false"; // Show http command traffic |
6c907975 | 200 | aptcdrom "false"; // Show found package files |
0a8e3465 | 201 | } |
c98b1307 AL |
202 | |
203 | /* Whatever you do, do not use this configuration file!! Take out ONLY | |
204 | the portions you need */ | |
648e3cb4 | 205 | This Is Not A Valid Config File |