--trivial-only and --no-remove. --trivial-only and --no...
[ntk/apt.git] / doc / examples / apt.conf
1 // $Id: apt.conf,v 1.40 1999/10/28 05:54:46 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. 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.
7
8 In some instances involving filenames it is possible to set the default
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.
18 */
19
20 // Options for APT in general
21 APT
22 {
23 Architecture "i386";
24
25 // Options for apt-get
26 Get
27 {
28 Download-Only "false";
29 Simulate "false";
30 Assume-Yes "false";
31 Force-Yes "false"; // I would never set this.
32 Fix-Broken "false";
33 Fix-Missing "false";
34 Show-Upgraded "false";
35 No-Upgrade "false";
36 Print-URIs "false";
37 Compile "false";
38 No-Download "false";
39 Purge "false";
40 List-Cleanup "true";
41 ReInstall "false";
42 Trivial-Only "false";
43 No-Remove "false";
44 };
45
46 Cache
47 {
48 Important "false";
49 AllVersions "false";
50 };
51
52 CDROM
53 {
54 Rename "false";
55 NoMount "false";
56 Fast "false";
57 NoAct "false";
58 };
59
60 // Some general options
61 Ignore-Hold "false";
62 Clean-Installed "true";
63 Immediate-Configure "true"; // DO NOT turn this off, see the man page
64 Force-LoopBreak "false"; // DO NOT turn this on, see the man page
65 };
66
67 // Options for the downloading routines
68 Acquire
69 {
70 Queue-Mode "host"; // host|access
71 Retries "0";
72 Source-Symlinks "true";
73
74 // HTTP method configuration
75 http
76 {
77 Proxy "http://127.0.0.1:3128";
78 Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
79 Timeout "120";
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
85 };
86
87 ftp
88 {
89 Proxy "ftp://127.0.0.1/";
90 Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
91
92 /* Required script to perform proxy login. This example should work
93 for tisfwtk */
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";
103
104 /* Passive mode control, proxy, non-proxy and per-host. Pasv mode
105 is prefered if possible */
106 Passive "true";
107 Proxy::Passive "true";
108 Passive::http.us.debian.org "true"; // Specific per-host setting
109 };
110
111 cdrom
112 {
113 Mount "/cdrom";
114
115 // You need the trailing slash!
116 "/cdrom/"
117 {
118 Mount "sleep 1000";
119 UMount "sleep 500";
120 }
121 };
122 };
123
124 // Directory layout
125 Dir
126 {
127 // Location of the state dir
128 State "/var/state/apt/"
129 {
130 lists "lists/";
131 xstatus "xstatus";
132 userstatus "status.user";
133 status "/var/lib/dpkg/status";
134 cdroms "cdroms.list";
135 };
136
137 // Location of the cache dir
138 Cache "/var/cache/apt/" {
139 archives "archives/";
140 srcpkgcache "srcpkgcache.bin";
141 pkgcache "pkgcache.bin";
142 };
143
144 // Config files
145 Etc "/etc/apt/" {
146 sourcelist "sources.list";
147 main "apt.conf";
148 };
149
150 // Locations of binaries
151 Bin {
152 methods "/usr/lib/apt/methods/";
153 gzip "/bin/gzip";
154 dpkg "/usr/bin/dpkg";
155 dpkg-source "/usr/bin/dpkg-source";
156 dpkg-buildpackage "/usr/bin/dpkg-buildpackage"
157 apt-get "/usr/bin/apt-get";
158 apt-cache "/usr/bin/apt-cache";
159 };
160 };
161
162 // Things that effect the APT dselect method
163 DSelect
164 {
165 Clean "auto"; // always|auto|prompt|never
166 Options "-f";
167 UpdateOptions "";
168 PromptAfterUpdate "no";
169 }
170
171 DPkg
172 {
173 // Probably don't want to use force-downgrade..
174 Options {"--force-overwrite";"--force-downgrade";}
175
176 // Auto re-mounting of a readonly /usr
177 Pre-Invoke {"mount -o remount,rw /usr";};
178 Post-Invoke {"mount -o remount,ro /usr";};
179
180 // Prevents daemons from getting cwd as something mountable (default)
181 Run-Directory "/";
182
183 // Build options for apt-get source --compile
184 Build-Options "-b -uc";
185
186 // Pre-configure all packages before they are installed using debconf.
187 Pre-Install-Pkgs {"dpkg-preconfig --apt --priority=low --frontend=dialog";};
188 }
189
190 /* Options you can set to see some debugging text They corrispond to names
191 of classes in the source code */
192 Debug
193 {
194 pkgProblemResolver "false";
195 pkgAcquire "false";
196 pkgAcquire::Worker "false";
197 pkgDPkgPM "false";
198
199 pkgInitialize "false"; // This one will dump the configuration space
200 NoLocking "false";
201 Acquire::Ftp "false"; // Show ftp command traffic
202 Acquire::Http "false"; // Show http command traffic
203 aptcdrom "false"; // Show found package files
204 }
205
206 /* Whatever you do, do not use this configuration file!! Take out ONLY
207 the portions you need */
208 This Is Not A Valid Config File