]> git.saurik.com Git - apt.git/blame - doc/examples/apt.conf
Added --no-download
[apt.git] / doc / examples / apt.conf
CommitLineData
ab559b35 1// $Id: apt.conf,v 1.33 1999/05/24 03:39:37 jgg Exp $
0a8e3465
AL
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.
93bf083d 5
6dd55be7 6 In some instances involving filenames it is possible to set the default
93bf083d
AL
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.
0a8e3465
AL
16*/
17
93bf083d 18// Options for APT in general
78b558ca
AL
19APT
20{
0a8e3465
AL
21 Architecture "i386";
22
93bf083d 23 // Options for apt-get
78b558ca
AL
24 Get
25 {
0a8e3465
AL
26 Download-Only "false";
27 Simulate "false";
28 Assume-Yes "false";
78b558ca 29 Force-Yes "false"; // I would never set this.
0a8e3465 30 Fix-Broken "false";
30e1eab5 31 Fix-Missing "false";
0a8e3465 32 Show-Upgraded "false";
3d8fd174 33 No-Upgrade "false";
7d8afa39 34 Print-URIs "false";
fb0ee66e 35 Compile "false";
ab559b35 36 No-Download "false";
3d8fd174
AL
37 };
38
78b558ca
AL
39 Cache
40 {
3d8fd174 41 Important "false";
0a8e3465 42 };
78b558ca
AL
43
44 CDROM
45 {
3d8fd174
AL
46 Rename "false";
47 NoMount "false";
48 Fast "false";
49 NoAct "false";
50 };
51
93bf083d 52 // Some general options
2e90f6e0 53 Ignore-Hold "false";
78b558ca 54 Immediate-Configure "true"; // DO NOT turn this off, see the man page
0a8e3465
AL
55};
56
93bf083d 57// Options for the downloading routines
0a8a80e5
AL
58Acquire
59{
769f7e1a 60 Queue-Mode "host"; // host|access
2b154e53 61 Retries "0";
22380cf2 62
c3c459fc
AL
63 // HTTP method configuration
64 http
22380cf2
AL
65 {
66 Proxy "http://127.0.0.1:3128";
c3c459fc 67 Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
2b154e53 68 Timeout "120";
5c2cb6e4
AL
69
70 // Cache Control. Note these do not work with Squid 2.0.2
71 No-Cache "false";
72 Max-Age "86400"; // 1 Day age on index files
73 No-Store "false"; // Prevent the cache from storing archives
c3c459fc 74 };
6d5dd02a
AL
75
76 ftp
77 {
78 Proxy "ftp://127.0.0.1/";
79 Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
80
78b558ca
AL
81 /* Required script to perform proxy login. This example should work
82 for tisfwtk */
6d5dd02a
AL
83 ProxyLogin
84 {
85 "USER $(PROXY_USER)";
86 "PASS $(PROXY_PASS)";
87 "USER $(SITE_USER)@$(SITE):$(SITE_PORT)";
88 "PASS $(SITE_PASS)";
89 };
90
91 Timeout "120";
78b558ca
AL
92
93 /* Passive mode control, proxy, non-proxy and per-host. Pasv mode
94 is prefered if possible */
6d5dd02a
AL
95 Passive "true";
96 Proxy::Passive "true";
78b558ca 97 Passive::http.us.debian.org "true"; // Specific per-host setting
6d5dd02a 98 };
dcc48266
AL
99
100 cdrom
101 {
6c907975
AL
102 Mount "/cdrom";
103
104 // You need the trailing slash!
105 "/cdrom/"
106 {
107 Mount "sleep 1000";
108 UMount "sleep 500";
109 }
dcc48266 110 };
0a8a80e5
AL
111};
112
93bf083d 113// Directory layout
0a8e3465
AL
114Dir
115{
93bf083d 116 // Location of the state dir
0a8e3465
AL
117 State "/var/state/apt/"
118 {
119 lists "lists/";
120 xstatus "xstatus";
121 userstatus "status.user";
42c90c42
AL
122 status "/var/lib/dpkg/status";
123 cdroms "cdroms.list";
0a8e3465
AL
124 };
125
93bf083d 126 // Location of the cache dir
0a8e3465
AL
127 Cache "/var/cache/apt/" {
128 archives "archives/";
129 srcpkgcache "srcpkgcache.bin";
130 pkgcache "pkgcache.bin";
131 };
132
93bf083d 133 // Config files
0a8e3465 134 Etc "/etc/apt/" {
93bf083d 135 sourcelist "sources.list";
0a8e3465
AL
136 main "apt.conf";
137 };
024835dc 138
93bf083d 139 // Locations of binaries
024835dc 140 Bin {
3d8fd174 141 methods "/usr/lib/apt/methods/";
93bf083d 142 gzip "/bin/gzip";
30e1eab5 143 dpkg "/usr/bin/dpkg";
fb0ee66e
AL
144 dpkg-source "/usr/bin/dpkg-source";
145 dpkg-buildpackage "/usr/bin/dpkg-buildpackage"
7a1b1f8b 146 apt-get "/usr/bin/apt-get";
53697617 147 apt-cache "/usr/bin/apt-cache";
024835dc 148 };
0a8e3465
AL
149};
150
c3c459fc 151// Things that effect the APT dselect method
78b558ca
AL
152DSelect
153{
dcc48266 154 Clean "auto"; // always|auto|prompt|never
7a1b1f8b
AL
155 Options "-f";
156 UpdateOptions "";
c217f42a 157 PromptAfterUpdate "no";
0a8e3465
AL
158}
159
78b558ca
AL
160DPkg
161{
162 // Probably don't want to set this one..
6dd55be7 163 Options {"--force-downgrade";}
78b558ca
AL
164
165 // Auto re-mounting of a readonly /usr
6dd55be7
AL
166 Pre-Invoke {"mount -o remount,rw /usr";};
167 Post-Invoke {"mount -o remount,ro /usr";};
78b558ca
AL
168
169 // Prevents daemons from getting cwd as something mountable (default)
87b11230 170 Run-Directory "/";
fb0ee66e
AL
171
172 // Build options for apt-get source --compile
173 Build-Options "-b -uc";
6dd55be7
AL
174}
175
93bf083d
AL
176/* Options you can set to see some debugging text They corrispond to names
177 of classes in the source code */
78b558ca
AL
178Debug
179{
93bf083d 180 pkgProblemResolver "false";
0a8a80e5 181 pkgAcquire "false";
93bf083d 182 pkgAcquire::Worker "false";
30e1eab5 183 pkgDPkgPM "false";
93bf083d
AL
184
185 pkgInitialize "false"; // This one will dump the configuration space
78b558ca
AL
186 NoLocking "false";
187 Acquire::Ftp "false"; // Show ftp command traffic
6c907975 188 aptcdrom "false"; // Show found package files
0a8e3465 189}