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