]> git.saurik.com Git - apt.git/blob - doc/examples/apt.conf
18292f6f680b1f368573224c63cd324aeb9c31e8
[apt.git] / doc / examples / apt.conf
1 // $Id: apt.conf,v 1.17 1998/12/06 04:36:33 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 involing 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 };
33
34 Cache {
35 Important "false";
36 };
37
38 CDROM {
39 Rename "false";
40 NoMount "false";
41 Fast "false";
42 NoAct "false";
43 };
44
45 // Some general options
46 Ingore-Hold "false";
47 };
48
49 // Options for the downloading routines
50 Acquire
51 {
52 Queue-Mode "host"; // host|access
53
54 // HTTP method configuration
55 http
56 {
57 Proxy "http://127.0.0.1:3128";
58 Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
59 };
60
61 cdrom
62 {
63 Mount "/cdrom";
64 };
65 };
66
67 // Directory layout
68 Dir
69 {
70 // Location of the state dir
71 State "/var/state/apt/"
72 {
73 lists "lists/";
74 xstatus "xstatus";
75 userstatus "status.user";
76 status "/var/lib/dpkg/status";
77 };
78
79 // Location of the cache dir
80 Cache "/var/cache/apt/" {
81 archives "archives/";
82 srcpkgcache "srcpkgcache.bin";
83 pkgcache "pkgcache.bin";
84 };
85
86 // Config files
87 Etc "/etc/apt/" {
88 sourcelist "sources.list";
89 main "apt.conf";
90 };
91
92 // Locations of binaries
93 Bin {
94 methods "/usr/lib/apt/methods/";
95 gzip "/bin/gzip";
96 dpkg "/usr/bin/dpkg";
97 apt-get "/usr/bin/apt-get";
98 apt-cache "/usr/bin/apt-get";
99 };
100 };
101
102 // Things that effect the APT dselect method
103 DSelect {
104 Clean "auto"; // always|auto|prompt|never
105 Options "-f";
106 UpdateOptions "";
107 PromptAfterUpdate "no";
108 }
109
110 /* Options you can set to see some debugging text They corrispond to names
111 of classes in the source code */
112 Debug {
113 pkgProblemResolver "false";
114 pkgAcquire "false";
115 pkgAcquire::Worker "false";
116 pkgDPkgPM "false";
117
118 pkgInitialize "false"; // This one will dump the configuration space
119 NoLocking "false";
120 }