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