1 /* This file is an index of all APT configuration directives. It should
2 NOT actually be used as a real config file, though it is (except for the
3 last line) a completely valid file. Most of the options have sane default
4 values, unless you have specific needs you should NOT include arbitrary
5 items in a custom configuration.
7 In some instances involving filenames it is possible to set the default
8 directory when the path is evaluated. This means you can use relative
9 paths within the sub scope.
11 The configuration directives are specified in a tree with {} designating
12 a subscope relative to the tag before the {}. You can further specify
13 a subscope using scope notation eg,
14 APT::Architecture "i386";
15 This is prefixed with the current scope. Scope notation must be used
16 if an option is specified on the command line with -o.
20 quiet::NoUpdate "true"; // never update progress information - included in -q=1
22 // Options for APT in general
26 Build-Essential "build-essential";
28 NeverAutoRemove { "linux-image.*"; }; // packages that should never
29 // considered for autoRemove
31 // Options for apt-get
35 AllowUnauthenticated "false";
36 AutomaticRemove "false";
37 HideAutoRemove "false";
38 Download-Only "false";
41 Force-Yes "false"; // I would never set this.
44 Show-Upgraded "false";
45 Show-Versions "false";
58 Build-Dep-Automatic "true";
59 Show-User-Simulation-Note "true";
67 RecurseDepends "false";
85 Pre-Invoke {"touch /var/lib/apt/pre-update-stamp"; };
86 Post-Invoke {"touch /var/lib/apt/post-update-stamp"; };
91 TrustCDROM "false"; // consider the CDROM always trusted
94 // Some general options
96 Clean-Installed "true";
97 Immediate-Configure "true"; // DO NOT turn this off, see the man page
98 Force-LoopBreak "false"; // DO NOT turn this on, see the man page
99 Cache-Start "20971520";
100 Cache-Grow "1048576";
104 // consider Recommends, Suggests as important dependencies that should
105 // be installed by default
106 Install-Recommends "true";
107 Install-Suggests "false";
109 // consider dependencies of packages in this section manual
110 Never-MarkAuto-Sections {"metapackages"; "universe/metapackages"; };
112 // Write progress messages on this fd (for stuff like base-config)
114 // Keep the list of FDs open (normally apt closes all fds when it
120 // server the provides the changelogs, the code will assume
121 // the changlogs are in the pool/ under a srcpkg_ver directory
122 // with the name "changelog"
123 Server "http://packages.debian.org/changelogs";
126 // control parameters for cron jobs by /etc/cron.daily/apt
129 BackupArchiveInterval "0";
130 // - Backup after n-days if archive contents changed.(0=disable)
133 // - Backup level.(0=disable), 1 is invalid.
135 // APT::Archives::MaxAge "0"; (old, deprecated)
137 // - Set maximum allowed age of a cache package file. If a cache
138 // package file is older it is deleted (0=disable)
140 // APT::Archives::MinAge "2"; (old, deprecated)
142 // - Set minimum age of a package file. If a file is younger it
143 // will not be deleted (0=disable). Usefull to prevent races
144 // and to keep backups of the packages for emergency.
146 // APT::Archives::MaxSize "0"; (old, deprecated)
147 MaxSize "0"; // (new)
148 // - Set maximum size of the cache in MB (0=disable). If the cache
149 // is bigger, cached package files are deleted until the size
150 // requirement is met (the biggest packages will be deleted
153 Update-Package-Lists "0";
154 // - Do "apt-get update" automatically every n-days (0=disable)
156 Download-Upgradeable-Packages "0";
157 // - Do "apt-get upgrade --download-only" every n-days (0=disable)
159 Unattended-Upgrade "0";
160 // - Run the "unattended-upgrade" security upgrade script
161 // every n-days (0=disabled)
162 // Requires the package "unattended-upgrades" and will write
163 // a log in /var/log/unattended-upgrades
165 AutocleanInterval "0";
166 // - Do "apt-get autoclean" every n-days (0=disable)
169 // - Send report mail to root
170 // 0: no report (or null string)
171 // 1: progress report (actually any string)
172 // 2: + command outputs (remove -qq, remove 2>/dev/null, add -d)
177 // Options for the downloading routines
180 Queue-Mode "host"; // host|access
182 Source-Symlinks "true";
183 ForceHash "sha256"; // hashmethod used for expected hash: sha256, sha1 or md5sum
185 PDiffs "true"; // try to get the IndexFile diffs
186 PDiffs::FileLimit "4"; // don't use diffs if we would need more than 4 diffs
187 PDiffs::SizeLimit "50"; // don't use diffs if size of all patches excess
188 // 50% of the size of the original file
190 Check-Valid-Until "true";
191 Max-ValidTime "864000"; // 10 days
192 Max-ValidTime::Debian-Security "604800"; // 7 days, label specific configuration
194 // HTTP method configuration
197 Proxy "http://127.0.0.1:3128";
198 Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
201 AllowRedirect "true";
203 // Cache Control. Note these do not work with Squid 2.0.2
205 Max-Age "86400"; // 1 Day age on index files
206 No-Store "false"; // Prevent the cache from storing archives
207 Dl-Limit "7"; // 7Kb/sec maximum download rate
208 User-Agent "Debian APT-HTTP/1.3";
213 // HTTPS method configuration: uses the http
215 // - cache-control values
216 // - Dl-Limit, Timout, ... values
217 // if not set explicit for https
219 // see /usr/share/doc/apt/examples/apt-https-method-example.conf.gz
224 SslCert "/etc/apt/some.pem";
225 CaPath "/etc/ssl/certs";
227 AllowRedirect "true";
230 AllowRedirect "true";
232 // Cache Control. Note these do not work with Squid 2.0.2
234 Max-Age "86400"; // 1 Day age on index files
235 No-Store "false"; // Prevent the cache from storing archives
236 Dl-Limit "7"; // 7Kb/sec maximum download rate
238 User-Agent "Debian APT-CURL/1.0";
243 Proxy "ftp://127.0.0.1/";
244 Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
246 /* Required script to perform proxy login. This example should work
250 "USER $(PROXY_USER)";
251 "PASS $(PROXY_PASS)";
252 "USER $(SITE_USER)@$(SITE):$(SITE_PORT)";
258 /* Passive mode control, proxy, non-proxy and per-host. Pasv mode
259 is preferred if possible */
261 Proxy::Passive "true";
262 Passive::http.us.debian.org "true"; // Specific per-host setting
267 // do auto detection of the cdrom mountpoint
270 // cdrom mountpoint (needs to be defined in fstab if AutoDetect is not used)
273 // You need the trailing slash!
283 Options {"--ignore-time-conflict";} // not very useful on a normal system
292 Order { "uncompressed"; "gz"; "lzma"; "bz2"; };
308 // Location of the state dir
312 status "/var/lib/dpkg/status";
313 extended_states "extended_states";
314 cdroms "cdroms.list";
317 // Location of the cache dir
318 Cache "var/cache/apt/" {
319 Archives "archives/";
320 // backup directory created by /etc/cron.daily/apt
322 srcpkgcache "srcpkgcache.bin";
323 pkgcache "pkgcache.bin";
331 Preferences "preferences";
332 PreferencesParts "preferences.d";
333 SourceList "sources.list";
334 SourceParts "sources.list.d";
335 VendorList "vendors.list";
336 VendorParts "vendors.list.d";
337 Trusted "trusted.gpg";
338 TrustedParts "trusted.gpg.d";
341 // Locations of binaries
343 methods "/usr/lib/apt/methods/";
346 dpkg "/usr/bin/dpkg";
347 dpkg-source "/usr/bin/dpkg-source";
348 dpkg-buildpackage "/usr/bin/dpkg-buildpackage";
349 apt-get "/usr/bin/apt-get";
350 apt-cache "/usr/bin/apt-cache";
353 // Location of the logfile
356 History "history.log";
362 // Media AutoDetect mount path
363 MountPath "/media/apt";
369 // Media AutoDetect mount path
370 MountPath "/media/apt";
374 // Things that effect the APT dselect method
377 Clean "auto"; // always|auto|prompt|never
380 PromptAfterUpdate "no";
386 // let apt aggressivly use dpkg triggers
389 ConfigurePending "true";
391 // Probably don't want to use force-downgrade..
392 Options {"--force-overwrite";"--force-downgrade";}
394 // Auto re-mounting of a readonly /usr
395 Pre-Invoke {"mount -o remount,rw /usr";};
396 Post-Invoke {"mount -o remount,ro /usr";};
398 Chroot-Directory "/";
400 // Prevents daemons from getting cwd as something mountable (default)
403 // Build options for apt-get source --compile
404 Build-Options "-b -uc";
406 // Pre-configure all packages before they are installed using debconf.
407 Pre-Install-Pkgs {"dpkg-preconfigure --apt --priority=low --frontend=dialog";};
409 // Flush the contents of stdin before forking dpkg.
412 // Control the size of the command line passed to dpkg.
416 // controls if apt will apport on the first dpkg error or if it
417 // tries to install as many packages as possible
421 /* Options you can set to see some debugging text They correspond to names
422 of classes in the source code */
425 pkgProblemResolver "false";
426 pkgProblemResolver::ShowScores "false";
427 pkgDepCache::AutoInstall "false"; // what packages apt install to satify dependencies
428 pkgDepCache::Marker "false";
431 pkgAcquire::Worker "false";
432 pkgAcquire::Auth "false";
434 pkgDPkgProgressReporting "false";
435 pkgOrderList "false";
436 pkgPackageManager "false"; // OrderList/Configure debugging
437 pkgAutoRemove "false"; // show information about automatic removes
439 pkgInitialize "false"; // This one will dump the configuration space
441 Acquire::Ftp "false"; // Show ftp command traffic
442 Acquire::Http "false"; // Show http command traffic
443 Acquire::Https "false"; // Show https debug
444 Acquire::gpgv "false"; // Show the gpgv traffic
445 Acquire::cdrom "false"; // Show cdrom debug output
446 aptcdrom "false"; // Show found package files
448 acquire::netrc "false"; // netrc parser
452 pkgCacheGen::Essential "native"; // other modes: all, none, installed
454 /* Whatever you do, do not use this configuration file!! Take out ONLY
455 the portions you need! */
456 This Is Not A Valid Config File