]>
Commit | Line | Data |
---|---|---|
cf544e14 | 1 | // $Id: apt.conf,v 1.24 1999/01/31 08:55:53 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 |
0a8e3465 AL |
19 | APT { |
20 | Architecture "i386"; | |
21 | ||
93bf083d | 22 | // Options for apt-get |
0a8e3465 AL |
23 | Get { |
24 | Download-Only "false"; | |
25 | Simulate "false"; | |
26 | Assume-Yes "false"; | |
dcc48266 | 27 | Force-Yes "false"; // I would never set this. |
0a8e3465 | 28 | Fix-Broken "false"; |
30e1eab5 | 29 | Fix-Missing "false"; |
0a8e3465 | 30 | Show-Upgraded "false"; |
3d8fd174 | 31 | No-Upgrade "false"; |
7d8afa39 | 32 | Print-URIs "false"; |
3d8fd174 AL |
33 | }; |
34 | ||
35 | Cache { | |
36 | Important "false"; | |
0a8e3465 | 37 | }; |
c88edf1d | 38 | |
3d8fd174 AL |
39 | CDROM { |
40 | Rename "false"; | |
41 | NoMount "false"; | |
42 | Fast "false"; | |
43 | NoAct "false"; | |
44 | }; | |
45 | ||
93bf083d | 46 | // Some general options |
c88edf1d | 47 | Ingore-Hold "false"; |
b780bc1b | 48 | Immediate-Configure "true"; // DO NOT turn this off, see the man page |
0a8e3465 AL |
49 | }; |
50 | ||
93bf083d | 51 | // Options for the downloading routines |
0a8a80e5 AL |
52 | Acquire |
53 | { | |
769f7e1a | 54 | Queue-Mode "host"; // host|access |
7d8afa39 | 55 | Retry "false"; |
22380cf2 | 56 | |
c3c459fc AL |
57 | // HTTP method configuration |
58 | http | |
22380cf2 AL |
59 | { |
60 | Proxy "http://127.0.0.1:3128"; | |
c3c459fc | 61 | Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting |
5c2cb6e4 AL |
62 | |
63 | // Cache Control. Note these do not work with Squid 2.0.2 | |
64 | No-Cache "false"; | |
65 | Max-Age "86400"; // 1 Day age on index files | |
66 | No-Store "false"; // Prevent the cache from storing archives | |
c3c459fc | 67 | }; |
dcc48266 AL |
68 | |
69 | cdrom | |
70 | { | |
71 | Mount "/cdrom"; | |
72 | }; | |
0a8a80e5 AL |
73 | }; |
74 | ||
93bf083d | 75 | // Directory layout |
0a8e3465 AL |
76 | Dir |
77 | { | |
93bf083d | 78 | // Location of the state dir |
0a8e3465 AL |
79 | State "/var/state/apt/" |
80 | { | |
81 | lists "lists/"; | |
82 | xstatus "xstatus"; | |
83 | userstatus "status.user"; | |
42c90c42 AL |
84 | status "/var/lib/dpkg/status"; |
85 | cdroms "cdroms.list"; | |
0a8e3465 AL |
86 | }; |
87 | ||
93bf083d | 88 | // Location of the cache dir |
0a8e3465 AL |
89 | Cache "/var/cache/apt/" { |
90 | archives "archives/"; | |
91 | srcpkgcache "srcpkgcache.bin"; | |
92 | pkgcache "pkgcache.bin"; | |
93 | }; | |
94 | ||
93bf083d | 95 | // Config files |
0a8e3465 | 96 | Etc "/etc/apt/" { |
93bf083d | 97 | sourcelist "sources.list"; |
0a8e3465 AL |
98 | main "apt.conf"; |
99 | }; | |
024835dc | 100 | |
93bf083d | 101 | // Locations of binaries |
024835dc | 102 | Bin { |
3d8fd174 | 103 | methods "/usr/lib/apt/methods/"; |
93bf083d | 104 | gzip "/bin/gzip"; |
30e1eab5 | 105 | dpkg "/usr/bin/dpkg"; |
7a1b1f8b AL |
106 | apt-get "/usr/bin/apt-get"; |
107 | apt-cache "/usr/bin/apt-get"; | |
024835dc | 108 | }; |
0a8e3465 AL |
109 | }; |
110 | ||
c3c459fc | 111 | // Things that effect the APT dselect method |
0a8e3465 | 112 | DSelect { |
dcc48266 | 113 | Clean "auto"; // always|auto|prompt|never |
7a1b1f8b AL |
114 | Options "-f"; |
115 | UpdateOptions ""; | |
c217f42a | 116 | PromptAfterUpdate "no"; |
0a8e3465 AL |
117 | } |
118 | ||
6dd55be7 AL |
119 | DPkg { |
120 | Options {"--force-downgrade";} | |
121 | Pre-Invoke {"mount -o remount,rw /usr";}; | |
122 | Post-Invoke {"mount -o remount,ro /usr";}; | |
cf544e14 | 123 | Run-Direcotry "/"; |
6dd55be7 AL |
124 | } |
125 | ||
93bf083d AL |
126 | /* Options you can set to see some debugging text They corrispond to names |
127 | of classes in the source code */ | |
0a8e3465 | 128 | Debug { |
93bf083d | 129 | pkgProblemResolver "false"; |
0a8a80e5 | 130 | pkgAcquire "false"; |
93bf083d | 131 | pkgAcquire::Worker "false"; |
30e1eab5 | 132 | pkgDPkgPM "false"; |
93bf083d AL |
133 | |
134 | pkgInitialize "false"; // This one will dump the configuration space | |
c3c459fc | 135 | NoLocking "false"; |
0a8e3465 | 136 | } |