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
118 // control parameters for cron jobs by /etc/cron.daily/apt
121 BackupArchiveInterval "0";
122 // - Backup after n-days if archive contents changed.(0=disable)
125 // - Backup level.(0=disable), 1 is invalid.
127 // APT::Archives::MaxAge "0"; (old, deprecated)
129 // - Set maximum allowed age of a cache package file. If a cache
130 // package file is older it is deleted (0=disable)
132 // APT::Archives::MinAge "2"; (old, deprecated)
134 // - Set minimum age of a package file. If a file is younger it
135 // will not be deleted (0=disable). Usefull to prevent races
136 // and to keep backups of the packages for emergency.
138 // APT::Archives::MaxSize "0"; (old, deprecated)
139 MaxSize "0"; // (new)
140 // - Set maximum size of the cache in MB (0=disable). If the cache
141 // is bigger, cached package files are deleted until the size
142 // requirement is met (the biggest packages will be deleted
145 Update-Package-Lists "0";
146 // - Do "apt-get update" automatically every n-days (0=disable)
148 Download-Upgradeable-Packages "0";
149 // - Do "apt-get upgrade --download-only" every n-days (0=disable)
151 Unattended-Upgrade "0";
152 // - Run the "unattended-upgrade" security upgrade script
153 // every n-days (0=disabled)
154 // Requires the package "unattended-upgrades" and will write
155 // a log in /var/log/unattended-upgrades
157 AutocleanInterval "0";
158 // - Do "apt-get autoclean" every n-days (0=disable)
161 // - Send report mail to root
162 // 0: no report (or null string)
163 // 1: progress report (actually any string)
164 // 2: + command outputs (remove -qq, remove 2>/dev/null, add -d)
169 // Options for the downloading routines
172 Queue-Mode "host"; // host|access
174 Source-Symlinks "true";
175 ForceHash "sha256"; // hashmethod used for expected hash: sha256, sha1 or md5sum
177 PDiffs "true"; // try to get the IndexFile diffs
178 PDiffs::FileLimit "4"; // don't use diffs if we would need more than 4 diffs
179 PDiffs::SizeLimit "50"; // don't use diffs if size of all patches excess
180 // 50% of the size of the original file
182 Check-Valid-Until "true";
183 Max-ValidTime "864000"; // 10 days
184 Max-ValidTime::Debian-Security "604800"; // 7 days, label specific configuration
186 // HTTP method configuration
189 Proxy "http://127.0.0.1:3128";
190 Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
193 AllowRedirect "true";
195 // Cache Control. Note these do not work with Squid 2.0.2
197 Max-Age "86400"; // 1 Day age on index files
198 No-Store "false"; // Prevent the cache from storing archives
199 Dl-Limit "7"; // 7Kb/sec maximum download rate
200 User-Agent "Debian APT-HTTP/1.3";
205 // HTTPS method configuration: uses the http
207 // - cache-control values
208 // - Dl-Limit, Timout, ... values
209 // if not set explicit for https
211 // see /usr/share/doc/apt/examples/apt-https-method-example.conf.gz
216 SslCert "/etc/apt/some.pem";
217 CaPath "/etc/ssl/certs";
219 AllowRedirect "true";
222 AllowRedirect "true";
224 // Cache Control. Note these do not work with Squid 2.0.2
226 Max-Age "86400"; // 1 Day age on index files
227 No-Store "false"; // Prevent the cache from storing archives
228 Dl-Limit "7"; // 7Kb/sec maximum download rate
230 User-Agent "Debian APT-CURL/1.0";
235 Proxy "ftp://127.0.0.1/";
236 Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
238 /* Required script to perform proxy login. This example should work
242 "USER $(PROXY_USER)";
243 "PASS $(PROXY_PASS)";
244 "USER $(SITE_USER)@$(SITE):$(SITE_PORT)";
250 /* Passive mode control, proxy, non-proxy and per-host. Pasv mode
251 is preferred if possible */
253 Proxy::Passive "true";
254 Passive::http.us.debian.org "true"; // Specific per-host setting
259 // do auto detection of the cdrom mountpoint
262 // cdrom mountpoint (needs to be defined in fstab if AutoDetect is not used)
265 // You need the trailing slash!
275 Options {"--ignore-time-conflict";} // not very useful on a normal system
284 Order { "uncompressed"; "gz"; "lzma"; "bz2"; };
300 // Location of the state dir
304 status "/var/lib/dpkg/status";
305 extended_states "extended_states";
306 cdroms "cdroms.list";
309 // Location of the cache dir
310 Cache "var/cache/apt/" {
311 Archives "archives/";
312 // backup directory created by /etc/cron.daily/apt
314 srcpkgcache "srcpkgcache.bin";
315 pkgcache "pkgcache.bin";
323 Preferences "preferences";
324 PreferencesParts "preferences.d";
325 SourceList "sources.list";
326 SourceParts "sources.list.d";
327 VendorList "vendors.list";
328 VendorParts "vendors.list.d";
329 Trusted "trusted.gpg";
330 TrustedParts "trusted.gpg.d";
333 // Locations of binaries
335 methods "/usr/lib/apt/methods/";
338 dpkg "/usr/bin/dpkg";
339 dpkg-source "/usr/bin/dpkg-source";
340 dpkg-buildpackage "/usr/bin/dpkg-buildpackage";
341 apt-get "/usr/bin/apt-get";
342 apt-cache "/usr/bin/apt-cache";
345 // Location of the logfile
348 History "history.log";
354 // Media AutoDetect mount path
355 MountPath "/media/apt";
361 // Media AutoDetect mount path
362 MountPath "/media/apt";
366 // Things that effect the APT dselect method
369 Clean "auto"; // always|auto|prompt|never
372 PromptAfterUpdate "no";
378 // let apt aggressivly use dpkg triggers
381 ConfigurePending "true";
383 // Probably don't want to use force-downgrade..
384 Options {"--force-overwrite";"--force-downgrade";}
386 // Auto re-mounting of a readonly /usr
387 Pre-Invoke {"mount -o remount,rw /usr";};
388 Post-Invoke {"mount -o remount,ro /usr";};
390 Chroot-Directory "/";
392 // Prevents daemons from getting cwd as something mountable (default)
395 // Build options for apt-get source --compile
396 Build-Options "-b -uc";
398 // Pre-configure all packages before they are installed using debconf.
399 Pre-Install-Pkgs {"dpkg-preconfigure --apt --priority=low --frontend=dialog";};
401 // Flush the contents of stdin before forking dpkg.
404 // Control the size of the command line passed to dpkg.
408 // controls if apt will apport on the first dpkg error or if it
409 // tries to install as many packages as possible
413 /* Options you can set to see some debugging text They correspond to names
414 of classes in the source code */
417 pkgProblemResolver "false";
418 pkgProblemResolver::ShowScores "false";
419 pkgDepCache::AutoInstall "false"; // what packages apt install to satify dependencies
420 pkgDepCache::Marker "false";
423 pkgAcquire::Worker "false";
424 pkgAcquire::Auth "false";
426 pkgDPkgProgressReporting "false";
427 pkgOrderList "false";
428 pkgPackageManager "false"; // OrderList/Configure debugging
429 pkgAutoRemove "false"; // show information about automatic removes
431 pkgInitialize "false"; // This one will dump the configuration space
433 Acquire::Ftp "false"; // Show ftp command traffic
434 Acquire::Http "false"; // Show http command traffic
435 Acquire::Https "false"; // Show https debug
436 Acquire::gpgv "false"; // Show the gpgv traffic
437 Acquire::cdrom "false"; // Show cdrom debug output
438 aptcdrom "false"; // Show found package files
440 acquire::netrc "false"; // netrc parser
444 pkgCacheGen::Essential "native"; // other modes: all, none, installed
446 /* Whatever you do, do not use this configuration file!! Take out ONLY
447 the portions you need! */
448 This Is Not A Valid Config File