]>
Commit | Line | Data |
---|---|---|
9d4c8f67 | 1 | // $Id: apt.conf,v 1.36 1999/08/12 05:59:47 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 |
19 | APT |
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"; |
ab559b35 | 36 | No-Download "false"; |
9df71a5b AL |
37 | Purge "false"; |
38 | List-Cleanup "true"; | |
3d8fd174 AL |
39 | }; |
40 | ||
78b558ca AL |
41 | Cache |
42 | { | |
3d8fd174 | 43 | Important "false"; |
0a8e3465 | 44 | }; |
78b558ca AL |
45 | |
46 | CDROM | |
47 | { | |
3d8fd174 AL |
48 | Rename "false"; |
49 | NoMount "false"; | |
50 | Fast "false"; | |
51 | NoAct "false"; | |
52 | }; | |
53 | ||
93bf083d | 54 | // Some general options |
2e90f6e0 | 55 | Ignore-Hold "false"; |
78b558ca | 56 | Immediate-Configure "true"; // DO NOT turn this off, see the man page |
9d4c8f67 | 57 | Force-LoopBreak "false"; // DO NOT turn this on, see the man page |
0a8e3465 AL |
58 | }; |
59 | ||
93bf083d | 60 | // Options for the downloading routines |
0a8a80e5 AL |
61 | Acquire |
62 | { | |
769f7e1a | 63 | Queue-Mode "host"; // host|access |
2b154e53 | 64 | Retries "0"; |
22380cf2 | 65 | |
c3c459fc AL |
66 | // HTTP method configuration |
67 | http | |
22380cf2 AL |
68 | { |
69 | Proxy "http://127.0.0.1:3128"; | |
c3c459fc | 70 | Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting |
2b154e53 | 71 | Timeout "120"; |
5c2cb6e4 AL |
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 | |
c3c459fc | 77 | }; |
6d5dd02a AL |
78 | |
79 | ftp | |
80 | { | |
81 | Proxy "ftp://127.0.0.1/"; | |
82 | Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting | |
83 | ||
78b558ca AL |
84 | /* Required script to perform proxy login. This example should work |
85 | for tisfwtk */ | |
6d5dd02a AL |
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"; | |
78b558ca AL |
95 | |
96 | /* Passive mode control, proxy, non-proxy and per-host. Pasv mode | |
97 | is prefered if possible */ | |
6d5dd02a AL |
98 | Passive "true"; |
99 | Proxy::Passive "true"; | |
78b558ca | 100 | Passive::http.us.debian.org "true"; // Specific per-host setting |
6d5dd02a | 101 | }; |
dcc48266 AL |
102 | |
103 | cdrom | |
104 | { | |
6c907975 AL |
105 | Mount "/cdrom"; |
106 | ||
107 | // You need the trailing slash! | |
108 | "/cdrom/" | |
109 | { | |
110 | Mount "sleep 1000"; | |
111 | UMount "sleep 500"; | |
112 | } | |
dcc48266 | 113 | }; |
0a8a80e5 AL |
114 | }; |
115 | ||
93bf083d | 116 | // Directory layout |
0a8e3465 AL |
117 | Dir |
118 | { | |
93bf083d | 119 | // Location of the state dir |
0a8e3465 AL |
120 | State "/var/state/apt/" |
121 | { | |
122 | lists "lists/"; | |
123 | xstatus "xstatus"; | |
124 | userstatus "status.user"; | |
42c90c42 AL |
125 | status "/var/lib/dpkg/status"; |
126 | cdroms "cdroms.list"; | |
0a8e3465 AL |
127 | }; |
128 | ||
93bf083d | 129 | // Location of the cache dir |
0a8e3465 AL |
130 | Cache "/var/cache/apt/" { |
131 | archives "archives/"; | |
132 | srcpkgcache "srcpkgcache.bin"; | |
133 | pkgcache "pkgcache.bin"; | |
134 | }; | |
135 | ||
93bf083d | 136 | // Config files |
0a8e3465 | 137 | Etc "/etc/apt/" { |
93bf083d | 138 | sourcelist "sources.list"; |
0a8e3465 AL |
139 | main "apt.conf"; |
140 | }; | |
024835dc | 141 | |
93bf083d | 142 | // Locations of binaries |
024835dc | 143 | Bin { |
3d8fd174 | 144 | methods "/usr/lib/apt/methods/"; |
93bf083d | 145 | gzip "/bin/gzip"; |
30e1eab5 | 146 | dpkg "/usr/bin/dpkg"; |
fb0ee66e AL |
147 | dpkg-source "/usr/bin/dpkg-source"; |
148 | dpkg-buildpackage "/usr/bin/dpkg-buildpackage" | |
7a1b1f8b | 149 | apt-get "/usr/bin/apt-get"; |
53697617 | 150 | apt-cache "/usr/bin/apt-cache"; |
024835dc | 151 | }; |
0a8e3465 AL |
152 | }; |
153 | ||
c3c459fc | 154 | // Things that effect the APT dselect method |
78b558ca AL |
155 | DSelect |
156 | { | |
dcc48266 | 157 | Clean "auto"; // always|auto|prompt|never |
7a1b1f8b AL |
158 | Options "-f"; |
159 | UpdateOptions ""; | |
c217f42a | 160 | PromptAfterUpdate "no"; |
0a8e3465 AL |
161 | } |
162 | ||
78b558ca AL |
163 | DPkg |
164 | { | |
165 | // Probably don't want to set this one.. | |
6dd55be7 | 166 | Options {"--force-downgrade";} |
78b558ca AL |
167 | |
168 | // Auto re-mounting of a readonly /usr | |
6dd55be7 AL |
169 | Pre-Invoke {"mount -o remount,rw /usr";}; |
170 | Post-Invoke {"mount -o remount,ro /usr";}; | |
78b558ca AL |
171 | |
172 | // Prevents daemons from getting cwd as something mountable (default) | |
87b11230 | 173 | Run-Directory "/"; |
fb0ee66e AL |
174 | |
175 | // Build options for apt-get source --compile | |
176 | Build-Options "-b -uc"; | |
06b8cce6 AL |
177 | |
178 | // Pre-configure all packages before they are installed using debconf. | |
179 | Pre-Install-Pkgs {"dpkg-preconfig --apt --priority=low --frontend=dialog";}; | |
6dd55be7 AL |
180 | } |
181 | ||
93bf083d AL |
182 | /* Options you can set to see some debugging text They corrispond to names |
183 | of classes in the source code */ | |
78b558ca AL |
184 | Debug |
185 | { | |
93bf083d | 186 | pkgProblemResolver "false"; |
0a8a80e5 | 187 | pkgAcquire "false"; |
93bf083d | 188 | pkgAcquire::Worker "false"; |
30e1eab5 | 189 | pkgDPkgPM "false"; |
93bf083d AL |
190 | |
191 | pkgInitialize "false"; // This one will dump the configuration space | |
78b558ca AL |
192 | NoLocking "false"; |
193 | Acquire::Ftp "false"; // Show ftp command traffic | |
6c907975 | 194 | aptcdrom "false"; // Show found package files |
0a8e3465 | 195 | } |