]> git.saurik.com Git - apt.git/blob - doc/examples/apt.conf
Fixed another oops
[apt.git] / doc / examples / apt.conf
1 // $Id: apt.conf,v 1.24 1999/01/31 08:55:53 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 Retry "false";
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
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
67 };
68
69 cdrom
70 {
71 Mount "/cdrom";
72 };
73 };
74
75 // Directory layout
76 Dir
77 {
78 // Location of the state dir
79 State "/var/state/apt/"
80 {
81 lists "lists/";
82 xstatus "xstatus";
83 userstatus "status.user";
84 status "/var/lib/dpkg/status";
85 cdroms "cdroms.list";
86 };
87
88 // Location of the cache dir
89 Cache "/var/cache/apt/" {
90 archives "archives/";
91 srcpkgcache "srcpkgcache.bin";
92 pkgcache "pkgcache.bin";
93 };
94
95 // Config files
96 Etc "/etc/apt/" {
97 sourcelist "sources.list";
98 main "apt.conf";
99 };
100
101 // Locations of binaries
102 Bin {
103 methods "/usr/lib/apt/methods/";
104 gzip "/bin/gzip";
105 dpkg "/usr/bin/dpkg";
106 apt-get "/usr/bin/apt-get";
107 apt-cache "/usr/bin/apt-get";
108 };
109 };
110
111 // Things that effect the APT dselect method
112 DSelect {
113 Clean "auto"; // always|auto|prompt|never
114 Options "-f";
115 UpdateOptions "";
116 PromptAfterUpdate "no";
117 }
118
119 DPkg {
120 Options {"--force-downgrade";}
121 Pre-Invoke {"mount -o remount,rw /usr";};
122 Post-Invoke {"mount -o remount,ro /usr";};
123 Run-Direcotry "/";
124 }
125
126 /* Options you can set to see some debugging text They corrispond to names
127 of classes in the source code */
128 Debug {
129 pkgProblemResolver "false";
130 pkgAcquire "false";
131 pkgAcquire::Worker "false";
132 pkgDPkgPM "false";
133
134 pkgInitialize "false"; // This one will dump the configuration space
135 NoLocking "false";
136 }