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