]> git.saurik.com Git - apt.git/blob - doc/examples/apt.conf
Make improvements
[apt.git] / doc / examples / apt.conf
1 // $Id: apt.conf,v 1.15 1998/11/23 23:17:49 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 Fix-Broken "false";
28 Fix-Missing "false";
29 Show-Upgraded "false";
30 };
31
32 // Some general options
33 Ingore-Hold "false";
34 };
35
36 // Options for the downloading routines
37 Acquire
38 {
39 Queue-Mode "host"; // host|access
40
41 // HTTP method configuration
42 http
43 {
44 Proxy "http://127.0.0.1:3128";
45 Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
46 };
47 };
48
49 // Directory layout
50 Dir
51 {
52 // Location of the state dir
53 State "/var/state/apt/"
54 {
55 lists "lists/";
56 xstatus "xstatus";
57 userstatus "status.user";
58 status "/var/lib/dpkg/status";
59 };
60
61 // Location of the cache dir
62 Cache "/var/cache/apt/" {
63 archives "archives/";
64 srcpkgcache "srcpkgcache.bin";
65 pkgcache "pkgcache.bin";
66 };
67
68 // Config files
69 Etc "/etc/apt/" {
70 sourcelist "sources.list";
71 main "apt.conf";
72 };
73
74 // Locations of binaries
75 Bin {
76 methods "/home/jgg/work/apt/build/bin/methods/";
77 gzip "/bin/gzip";
78 dpkg "/usr/bin/dpkg";
79 apt-get "/usr/bin/apt-get";
80 apt-cache "/usr/bin/apt-get";
81 };
82 };
83
84 // Things that effect the APT dselect method
85 DSelect {
86 Clean "auto";
87 Options "-f";
88 UpdateOptions "";
89 PromptAfterUpdate "no";
90 }
91
92 /* Options you can set to see some debugging text They corrispond to names
93 of classes in the source code */
94 Debug {
95 pkgProblemResolver "false";
96 pkgAcquire "false";
97 pkgAcquire::Worker "false";
98 pkgDPkgPM "false";
99
100 pkgInitialize "false"; // This one will dump the configuration space
101 NoLocking "false";
102 }