]>
Commit | Line | Data |
---|---|---|
c98b1307 | 1 | // $Id: apt.conf,v 1.38 1999/10/03 21:09:27 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"; |
c98b1307 | 56 | Clean-Installed "true"; |
78b558ca | 57 | Immediate-Configure "true"; // DO NOT turn this off, see the man page |
9d4c8f67 | 58 | Force-LoopBreak "false"; // DO NOT turn this on, see the man page |
0a8e3465 AL |
59 | }; |
60 | ||
93bf083d | 61 | // Options for the downloading routines |
0a8a80e5 AL |
62 | Acquire |
63 | { | |
769f7e1a | 64 | Queue-Mode "host"; // host|access |
2b154e53 | 65 | Retries "0"; |
917ae805 | 66 | Source-Symlinks "true"; |
22380cf2 | 67 | |
c3c459fc AL |
68 | // HTTP method configuration |
69 | http | |
22380cf2 AL |
70 | { |
71 | Proxy "http://127.0.0.1:3128"; | |
c3c459fc | 72 | Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting |
2b154e53 | 73 | Timeout "120"; |
5c2cb6e4 AL |
74 | |
75 | // Cache Control. Note these do not work with Squid 2.0.2 | |
76 | No-Cache "false"; | |
77 | Max-Age "86400"; // 1 Day age on index files | |
78 | No-Store "false"; // Prevent the cache from storing archives | |
c3c459fc | 79 | }; |
6d5dd02a AL |
80 | |
81 | ftp | |
82 | { | |
83 | Proxy "ftp://127.0.0.1/"; | |
84 | Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting | |
85 | ||
78b558ca AL |
86 | /* Required script to perform proxy login. This example should work |
87 | for tisfwtk */ | |
6d5dd02a AL |
88 | ProxyLogin |
89 | { | |
90 | "USER $(PROXY_USER)"; | |
91 | "PASS $(PROXY_PASS)"; | |
92 | "USER $(SITE_USER)@$(SITE):$(SITE_PORT)"; | |
93 | "PASS $(SITE_PASS)"; | |
94 | }; | |
95 | ||
96 | Timeout "120"; | |
78b558ca AL |
97 | |
98 | /* Passive mode control, proxy, non-proxy and per-host. Pasv mode | |
99 | is prefered if possible */ | |
6d5dd02a AL |
100 | Passive "true"; |
101 | Proxy::Passive "true"; | |
78b558ca | 102 | Passive::http.us.debian.org "true"; // Specific per-host setting |
6d5dd02a | 103 | }; |
dcc48266 AL |
104 | |
105 | cdrom | |
106 | { | |
6c907975 AL |
107 | Mount "/cdrom"; |
108 | ||
109 | // You need the trailing slash! | |
110 | "/cdrom/" | |
111 | { | |
112 | Mount "sleep 1000"; | |
113 | UMount "sleep 500"; | |
114 | } | |
dcc48266 | 115 | }; |
0a8a80e5 AL |
116 | }; |
117 | ||
93bf083d | 118 | // Directory layout |
0a8e3465 AL |
119 | Dir |
120 | { | |
93bf083d | 121 | // Location of the state dir |
0a8e3465 AL |
122 | State "/var/state/apt/" |
123 | { | |
124 | lists "lists/"; | |
125 | xstatus "xstatus"; | |
126 | userstatus "status.user"; | |
42c90c42 AL |
127 | status "/var/lib/dpkg/status"; |
128 | cdroms "cdroms.list"; | |
0a8e3465 AL |
129 | }; |
130 | ||
93bf083d | 131 | // Location of the cache dir |
0a8e3465 AL |
132 | Cache "/var/cache/apt/" { |
133 | archives "archives/"; | |
134 | srcpkgcache "srcpkgcache.bin"; | |
135 | pkgcache "pkgcache.bin"; | |
136 | }; | |
137 | ||
93bf083d | 138 | // Config files |
0a8e3465 | 139 | Etc "/etc/apt/" { |
93bf083d | 140 | sourcelist "sources.list"; |
0a8e3465 AL |
141 | main "apt.conf"; |
142 | }; | |
024835dc | 143 | |
93bf083d | 144 | // Locations of binaries |
024835dc | 145 | Bin { |
3d8fd174 | 146 | methods "/usr/lib/apt/methods/"; |
93bf083d | 147 | gzip "/bin/gzip"; |
30e1eab5 | 148 | dpkg "/usr/bin/dpkg"; |
fb0ee66e AL |
149 | dpkg-source "/usr/bin/dpkg-source"; |
150 | dpkg-buildpackage "/usr/bin/dpkg-buildpackage" | |
7a1b1f8b | 151 | apt-get "/usr/bin/apt-get"; |
53697617 | 152 | apt-cache "/usr/bin/apt-cache"; |
024835dc | 153 | }; |
0a8e3465 AL |
154 | }; |
155 | ||
c3c459fc | 156 | // Things that effect the APT dselect method |
78b558ca AL |
157 | DSelect |
158 | { | |
dcc48266 | 159 | Clean "auto"; // always|auto|prompt|never |
7a1b1f8b AL |
160 | Options "-f"; |
161 | UpdateOptions ""; | |
c217f42a | 162 | PromptAfterUpdate "no"; |
0a8e3465 AL |
163 | } |
164 | ||
78b558ca AL |
165 | DPkg |
166 | { | |
167 | // Probably don't want to set this one.. | |
6dd55be7 | 168 | Options {"--force-downgrade";} |
78b558ca AL |
169 | |
170 | // Auto re-mounting of a readonly /usr | |
6dd55be7 AL |
171 | Pre-Invoke {"mount -o remount,rw /usr";}; |
172 | Post-Invoke {"mount -o remount,ro /usr";}; | |
78b558ca AL |
173 | |
174 | // Prevents daemons from getting cwd as something mountable (default) | |
87b11230 | 175 | Run-Directory "/"; |
fb0ee66e AL |
176 | |
177 | // Build options for apt-get source --compile | |
178 | Build-Options "-b -uc"; | |
06b8cce6 AL |
179 | |
180 | // Pre-configure all packages before they are installed using debconf. | |
181 | Pre-Install-Pkgs {"dpkg-preconfig --apt --priority=low --frontend=dialog";}; | |
6dd55be7 AL |
182 | } |
183 | ||
93bf083d AL |
184 | /* Options you can set to see some debugging text They corrispond to names |
185 | of classes in the source code */ | |
78b558ca AL |
186 | Debug |
187 | { | |
93bf083d | 188 | pkgProblemResolver "false"; |
0a8a80e5 | 189 | pkgAcquire "false"; |
93bf083d | 190 | pkgAcquire::Worker "false"; |
30e1eab5 | 191 | pkgDPkgPM "false"; |
93bf083d AL |
192 | |
193 | pkgInitialize "false"; // This one will dump the configuration space | |
78b558ca AL |
194 | NoLocking "false"; |
195 | Acquire::Ftp "false"; // Show ftp command traffic | |
c98b1307 | 196 | Acquire::Http "false"; // Show http command traffic |
6c907975 | 197 | aptcdrom "false"; // Show found package files |
0a8e3465 | 198 | } |
c98b1307 AL |
199 | |
200 | /* Whatever you do, do not use this configuration file!! Take out ONLY | |
201 | the portions you need */ | |
202 | ThisIsNotAValidConfigFile |