]> git.saurik.com Git - apt.git/blame - doc/examples/apt.conf
--trivial-only and --no-remove. --trivial-only and --no...
[apt.git] / doc / examples / apt.conf
CommitLineData
d150b09d 1// $Id: apt.conf,v 1.40 1999/10/28 05:54:46 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
648e3cb4
AL
4 valid file. Most of the options have sane default values, unless
5 you have specific needs you should NOT include arbitary items in a custom
6 configuration.
93bf083d 7
6dd55be7 8 In some instances involving filenames it is possible to set the default
93bf083d
AL
9 directory when the path is evaluated. This means you can use relative
10 paths within the sub scope.
11
12 The configuration directives are specified in a tree with {} designating
13 a subscope relative to the tag before the {}. You can further specify
14 a subscope using scope notation eg,
15 APT::Architecture "i386";
16 This is prefixed with the current scope. Scope notation must be used
17 if an option is specified on the command line with -o.
0a8e3465
AL
18*/
19
93bf083d 20// Options for APT in general
78b558ca
AL
21APT
22{
0a8e3465
AL
23 Architecture "i386";
24
93bf083d 25 // Options for apt-get
78b558ca
AL
26 Get
27 {
0a8e3465
AL
28 Download-Only "false";
29 Simulate "false";
30 Assume-Yes "false";
78b558ca 31 Force-Yes "false"; // I would never set this.
0a8e3465 32 Fix-Broken "false";
30e1eab5 33 Fix-Missing "false";
0a8e3465 34 Show-Upgraded "false";
3d8fd174 35 No-Upgrade "false";
7d8afa39 36 Print-URIs "false";
fb0ee66e 37 Compile "false";
ab559b35 38 No-Download "false";
9df71a5b
AL
39 Purge "false";
40 List-Cleanup "true";
d150b09d
AL
41 ReInstall "false";
42 Trivial-Only "false";
43 No-Remove "false";
3d8fd174
AL
44 };
45
78b558ca
AL
46 Cache
47 {
3d8fd174 48 Important "false";
648e3cb4 49 AllVersions "false";
0a8e3465 50 };
78b558ca
AL
51
52 CDROM
53 {
3d8fd174
AL
54 Rename "false";
55 NoMount "false";
56 Fast "false";
57 NoAct "false";
58 };
59
93bf083d 60 // Some general options
2e90f6e0 61 Ignore-Hold "false";
c98b1307 62 Clean-Installed "true";
78b558ca 63 Immediate-Configure "true"; // DO NOT turn this off, see the man page
9d4c8f67 64 Force-LoopBreak "false"; // DO NOT turn this on, see the man page
0a8e3465
AL
65};
66
93bf083d 67// Options for the downloading routines
0a8a80e5
AL
68Acquire
69{
769f7e1a 70 Queue-Mode "host"; // host|access
2b154e53 71 Retries "0";
917ae805 72 Source-Symlinks "true";
22380cf2 73
c3c459fc
AL
74 // HTTP method configuration
75 http
22380cf2
AL
76 {
77 Proxy "http://127.0.0.1:3128";
c3c459fc 78 Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
2b154e53 79 Timeout "120";
5c2cb6e4
AL
80
81 // Cache Control. Note these do not work with Squid 2.0.2
82 No-Cache "false";
83 Max-Age "86400"; // 1 Day age on index files
84 No-Store "false"; // Prevent the cache from storing archives
c3c459fc 85 };
6d5dd02a
AL
86
87 ftp
88 {
89 Proxy "ftp://127.0.0.1/";
90 Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
91
78b558ca
AL
92 /* Required script to perform proxy login. This example should work
93 for tisfwtk */
6d5dd02a
AL
94 ProxyLogin
95 {
96 "USER $(PROXY_USER)";
97 "PASS $(PROXY_PASS)";
98 "USER $(SITE_USER)@$(SITE):$(SITE_PORT)";
99 "PASS $(SITE_PASS)";
100 };
101
102 Timeout "120";
78b558ca
AL
103
104 /* Passive mode control, proxy, non-proxy and per-host. Pasv mode
105 is prefered if possible */
6d5dd02a
AL
106 Passive "true";
107 Proxy::Passive "true";
78b558ca 108 Passive::http.us.debian.org "true"; // Specific per-host setting
6d5dd02a 109 };
dcc48266
AL
110
111 cdrom
112 {
6c907975
AL
113 Mount "/cdrom";
114
115 // You need the trailing slash!
116 "/cdrom/"
117 {
118 Mount "sleep 1000";
119 UMount "sleep 500";
120 }
dcc48266 121 };
0a8a80e5
AL
122};
123
93bf083d 124// Directory layout
0a8e3465
AL
125Dir
126{
93bf083d 127 // Location of the state dir
0a8e3465
AL
128 State "/var/state/apt/"
129 {
130 lists "lists/";
131 xstatus "xstatus";
132 userstatus "status.user";
42c90c42
AL
133 status "/var/lib/dpkg/status";
134 cdroms "cdroms.list";
0a8e3465
AL
135 };
136
93bf083d 137 // Location of the cache dir
0a8e3465
AL
138 Cache "/var/cache/apt/" {
139 archives "archives/";
140 srcpkgcache "srcpkgcache.bin";
141 pkgcache "pkgcache.bin";
142 };
143
93bf083d 144 // Config files
0a8e3465 145 Etc "/etc/apt/" {
93bf083d 146 sourcelist "sources.list";
0a8e3465
AL
147 main "apt.conf";
148 };
024835dc 149
93bf083d 150 // Locations of binaries
024835dc 151 Bin {
3d8fd174 152 methods "/usr/lib/apt/methods/";
93bf083d 153 gzip "/bin/gzip";
30e1eab5 154 dpkg "/usr/bin/dpkg";
fb0ee66e
AL
155 dpkg-source "/usr/bin/dpkg-source";
156 dpkg-buildpackage "/usr/bin/dpkg-buildpackage"
7a1b1f8b 157 apt-get "/usr/bin/apt-get";
53697617 158 apt-cache "/usr/bin/apt-cache";
024835dc 159 };
0a8e3465
AL
160};
161
c3c459fc 162// Things that effect the APT dselect method
78b558ca
AL
163DSelect
164{
dcc48266 165 Clean "auto"; // always|auto|prompt|never
7a1b1f8b
AL
166 Options "-f";
167 UpdateOptions "";
c217f42a 168 PromptAfterUpdate "no";
0a8e3465
AL
169}
170
78b558ca
AL
171DPkg
172{
648e3cb4
AL
173 // Probably don't want to use force-downgrade..
174 Options {"--force-overwrite";"--force-downgrade";}
78b558ca
AL
175
176 // Auto re-mounting of a readonly /usr
6dd55be7
AL
177 Pre-Invoke {"mount -o remount,rw /usr";};
178 Post-Invoke {"mount -o remount,ro /usr";};
78b558ca
AL
179
180 // Prevents daemons from getting cwd as something mountable (default)
87b11230 181 Run-Directory "/";
fb0ee66e
AL
182
183 // Build options for apt-get source --compile
184 Build-Options "-b -uc";
06b8cce6
AL
185
186 // Pre-configure all packages before they are installed using debconf.
187 Pre-Install-Pkgs {"dpkg-preconfig --apt --priority=low --frontend=dialog";};
6dd55be7
AL
188}
189
93bf083d
AL
190/* Options you can set to see some debugging text They corrispond to names
191 of classes in the source code */
78b558ca
AL
192Debug
193{
93bf083d 194 pkgProblemResolver "false";
0a8a80e5 195 pkgAcquire "false";
93bf083d 196 pkgAcquire::Worker "false";
30e1eab5 197 pkgDPkgPM "false";
93bf083d
AL
198
199 pkgInitialize "false"; // This one will dump the configuration space
78b558ca
AL
200 NoLocking "false";
201 Acquire::Ftp "false"; // Show ftp command traffic
c98b1307 202 Acquire::Http "false"; // Show http command traffic
6c907975 203 aptcdrom "false"; // Show found package files
0a8e3465 204}
c98b1307
AL
205
206/* Whatever you do, do not use this configuration file!! Take out ONLY
207 the portions you need */
648e3cb4 208This Is Not A Valid Config File