configure-index 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449
  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.
  6. In some instances involving filenames it is possible to set the default
  7. directory when the path is evaluated. This means you can use relative
  8. paths within the sub scope.
  9. The configuration directives are specified in a tree with {} designating
  10. a subscope relative to the tag before the {}. You can further specify
  11. a subscope using scope notation eg,
  12. APT::Architecture "i386";
  13. This is prefixed with the current scope. Scope notation must be used
  14. if an option is specified on the command line with -o.
  15. */
  16. quiet "0";
  17. quiet::NoUpdate "true"; // never update progress information - included in -q=1
  18. // Options for APT in general
  19. APT
  20. {
  21. Architecture "i386";
  22. Build-Essential "build-essential";
  23. NeverAutoRemove { "linux-image.*"; }; // packages that should never
  24. // considered for autoRemove
  25. // Options for apt-get
  26. Get
  27. {
  28. Arch-Only "false";
  29. AllowUnauthenticated "false";
  30. AutomaticRemove "false";
  31. HideAutoRemove "false";
  32. Download-Only "false";
  33. Simulate "false";
  34. Assume-Yes "false";
  35. Force-Yes "false"; // I would never set this.
  36. Fix-Broken "false";
  37. Fix-Missing "false";
  38. Show-Upgraded "false";
  39. Show-Versions "false";
  40. Upgrade "true";
  41. Print-URIs "false";
  42. Compile "false";
  43. Download "true";
  44. Purge "false";
  45. List-Cleanup "true";
  46. ReInstall "false";
  47. Trivial-Only "false";
  48. Remove "true";
  49. Only-Source "";
  50. Diff-Only "false";
  51. Tar-Only "false";
  52. Build-Dep-Automatic "true";
  53. Show-User-Simulation-Note "true";
  54. };
  55. Cache
  56. {
  57. Important "false";
  58. AllVersions "false";
  59. GivenOnly "false";
  60. RecurseDepends "false";
  61. ShowFull "false";
  62. Generate "true";
  63. NamesOnly "false";
  64. AllNames "false";
  65. Installed "false";
  66. };
  67. CDROM
  68. {
  69. Rename "false";
  70. NoMount "false";
  71. Fast "false";
  72. NoAct "false";
  73. };
  74. Update
  75. {
  76. Pre-Invoke {"touch /var/lib/apt/pre-update-stamp"; };
  77. Post-Invoke {"touch /var/lib/apt/post-update-stamp"; };
  78. };
  79. Authentication
  80. {
  81. TrustCDROM "false"; // consider the CDROM always trusted
  82. };
  83. // Some general options
  84. Ignore-Hold "false";
  85. Clean-Installed "true";
  86. Immediate-Configure "true"; // DO NOT turn this off, see the man page
  87. Force-LoopBreak "false"; // DO NOT turn this on, see the man page
  88. Cache-Start "20971520";
  89. Cache-Grow "1048576";
  90. Cache-Limit "0";
  91. Default-Release "";
  92. // consider Recommends, Suggests as important dependencies that should
  93. // be installed by default
  94. Install-Recommends "true";
  95. Install-Suggests "false";
  96. // consider dependencies of packages in this section manual
  97. Never-MarkAuto-Sections {"metapackages"; "universe/metapackages"; };
  98. // Write progress messages on this fd (for stuff like base-config)
  99. Status-Fd "-1";
  100. // Keep the list of FDs open (normally apt closes all fds when it
  101. // does a ExecFork)
  102. Keep-Fds {};
  103. // control parameters for cron jobs by /etc/cron.daily/apt
  104. Periodic
  105. {
  106. BackupArchiveInterval "0";
  107. // - Backup after n-days if archive contents changed.(0=disable)
  108. BackupLevel "3";
  109. // - Backup level.(0=disable), 1 is invalid.
  110. // APT::Archives::MaxAge "0"; (old, deprecated)
  111. MaxAge "0"; // (new)
  112. // - Set maximum allowed age of a cache package file. If a cache
  113. // package file is older it is deleted (0=disable)
  114. // APT::Archives::MinAge "2"; (old, deprecated)
  115. MinAge "2"; // (new)
  116. // - Set minimum age of a package file. If a file is younger it
  117. // will not be deleted (0=disable). Usefull to prevent races
  118. // and to keep backups of the packages for emergency.
  119. // APT::Archives::MaxSize "0"; (old, deprecated)
  120. MaxSize "0"; // (new)
  121. // - Set maximum size of the cache in MB (0=disable). If the cache
  122. // is bigger, cached package files are deleted until the size
  123. // requirement is met (the biggest packages will be deleted
  124. // first).
  125. Update-Package-Lists "0";
  126. // - Do "apt-get update" automatically every n-days (0=disable)
  127. //
  128. Download-Upgradeable-Packages "0";
  129. // - Do "apt-get upgrade --download-only" every n-days (0=disable)
  130. //
  131. Unattended-Upgrade "0";
  132. // - Run the "unattended-upgrade" security upgrade script
  133. // every n-days (0=disabled)
  134. // Requires the package "unattended-upgrades" and will write
  135. // a log in /var/log/unattended-upgrades
  136. //
  137. AutocleanInterval "0";
  138. // - Do "apt-get autoclean" every n-days (0=disable)
  139. Verbose "0";
  140. // - Send report mail to root
  141. // 0: no report (or null string)
  142. // 1: progress report (actually any string)
  143. // 2: + command outputs (remove -qq, remove 2>/dev/null, add -d)
  144. // 3: + trace on
  145. };
  146. };
  147. // Options for the downloading routines
  148. Acquire
  149. {
  150. Queue-Mode "host"; // host|access
  151. Retries "0";
  152. Source-Symlinks "true";
  153. ForceHash "sha256"; // hashmethod used for expected hash: sha256, sha1 or md5sum
  154. PDiffs "true"; // try to get the IndexFile diffs
  155. PDiffs::FileLimit "4"; // don't use diffs if we would need more than 4 diffs
  156. PDiffs::SizeLimit "50"; // don't use diffs if size of all patches excess
  157. // 50% of the size of the original file
  158. Check-Valid-Until "true";
  159. Max-ValidTime "864000"; // 10 days
  160. Max-ValidTime::Debian-Security "604800"; // 7 days, label specific configuration
  161. // HTTP method configuration
  162. http
  163. {
  164. Proxy "http://127.0.0.1:3128";
  165. Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
  166. Timeout "120";
  167. Pipeline-Depth "5";
  168. AllowRedirect "true";
  169. // Cache Control. Note these do not work with Squid 2.0.2
  170. No-Cache "false";
  171. Max-Age "86400"; // 1 Day age on index files
  172. No-Store "false"; // Prevent the cache from storing archives
  173. Dl-Limit "7"; // 7Kb/sec maximum download rate
  174. User-Agent "Debian APT-HTTP/1.3";
  175. };
  176. // HTTPS method configuration: uses the http
  177. // - proxy config
  178. // - cache-control values
  179. // - Dl-Limit, Timout, ... values
  180. // if not set explicit for https
  181. //
  182. // see /usr/share/doc/apt/examples/apt-https-method-example.conf.gz
  183. // for more examples
  184. https
  185. {
  186. Verify-Peer "false";
  187. SslCert "/etc/apt/some.pem";
  188. CaPath "/etc/ssl/certs";
  189. Verify-Host" "true";
  190. AllowRedirect "true";
  191. Timeout "120";
  192. AllowRedirect "true";
  193. // Cache Control. Note these do not work with Squid 2.0.2
  194. No-Cache "false";
  195. Max-Age "86400"; // 1 Day age on index files
  196. No-Store "false"; // Prevent the cache from storing archives
  197. Dl-Limit "7"; // 7Kb/sec maximum download rate
  198. User-Agent "Debian APT-CURL/1.0";
  199. };
  200. ftp
  201. {
  202. Proxy "ftp://127.0.0.1/";
  203. Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
  204. /* Required script to perform proxy login. This example should work
  205. for tisfwtk */
  206. ProxyLogin
  207. {
  208. "USER $(PROXY_USER)";
  209. "PASS $(PROXY_PASS)";
  210. "USER $(SITE_USER)@$(SITE):$(SITE_PORT)";
  211. "PASS $(SITE_PASS)";
  212. };
  213. Timeout "120";
  214. /* Passive mode control, proxy, non-proxy and per-host. Pasv mode
  215. is preferred if possible */
  216. Passive "true";
  217. Proxy::Passive "true";
  218. Passive::http.us.debian.org "true"; // Specific per-host setting
  219. };
  220. cdrom
  221. {
  222. // do auto detection of the cdrom mountpoint
  223. AutoDetect "true";
  224. // cdrom mountpoint (needs to be defined in fstab if AutoDetect is not used)
  225. mount "/cdrom";
  226. // You need the trailing slash!
  227. "/cdrom/"
  228. {
  229. Mount "sleep 1000";
  230. UMount "sleep 500";
  231. }
  232. };
  233. gpgv
  234. {
  235. Options {"--ignore-time-conflict";} // not very useful on a normal system
  236. };
  237. CompressionTypes
  238. {
  239. bz2 "bzip2";
  240. lzma "lzma";
  241. gz "gzip";
  242. Order { "gz"; "lzma"; "bz2"; };
  243. };
  244. Languages
  245. {
  246. "environment";
  247. "de";
  248. "en";
  249. "none";
  250. "fr";
  251. };
  252. };
  253. // Directory layout
  254. Dir "/"
  255. {
  256. // Location of the state dir
  257. State "var/lib/apt/"
  258. {
  259. Lists "lists/";
  260. status "/var/lib/dpkg/status";
  261. extended_states "extended_states";
  262. cdroms "cdroms.list";
  263. };
  264. // Location of the cache dir
  265. Cache "var/cache/apt/" {
  266. Archives "archives/";
  267. // backup directory created by /etc/cron.daily/apt
  268. Backup "backup/";
  269. srcpkgcache "srcpkgcache.bin";
  270. pkgcache "pkgcache.bin";
  271. };
  272. // Config files
  273. Etc "etc/apt/" {
  274. Main "apt.conf";
  275. Netrc "auth.conf";
  276. Parts "apt.conf.d/";
  277. Preferences "preferences";
  278. PreferencesParts "preferences.d";
  279. SourceList "sources.list";
  280. SourceParts "sources.list.d";
  281. VendorList "vendors.list";
  282. VendorParts "vendors.list.d";
  283. Trusted "trusted.gpg";
  284. TrustedParts "trusted.gpg.d";
  285. };
  286. // Locations of binaries
  287. Bin {
  288. methods "/usr/lib/apt/methods/";
  289. gzip "/bin/gzip";
  290. gpg "/usr/bin/gpgv";
  291. dpkg "/usr/bin/dpkg";
  292. dpkg-source "/usr/bin/dpkg-source";
  293. dpkg-buildpackage "/usr/bin/dpkg-buildpackage";
  294. apt-get "/usr/bin/apt-get";
  295. apt-cache "/usr/bin/apt-cache";
  296. };
  297. // Location of the logfile
  298. Log "var/log/apt" {
  299. Terminal "term.log";
  300. History "history.log";
  301. };
  302. // Media
  303. Media
  304. {
  305. // Media AutoDetect mount path
  306. MountPath "/media/apt";
  307. };
  308. // Media
  309. Media
  310. {
  311. // Media AutoDetect mount path
  312. MountPath "/media/apt";
  313. };
  314. };
  315. // Things that effect the APT dselect method
  316. DSelect
  317. {
  318. Clean "auto"; // always|auto|prompt|never
  319. Options "-f";
  320. UpdateOptions "";
  321. PromptAfterUpdate "no";
  322. CheckDir "no";
  323. }
  324. DPkg
  325. {
  326. // let apt aggressivly use dpkg triggers
  327. NoTriggers "true";
  328. NoConfigure "true";
  329. ConfigurePending "true";
  330. // Probably don't want to use force-downgrade..
  331. Options {"--force-overwrite";"--force-downgrade";}
  332. // Auto re-mounting of a readonly /usr
  333. Pre-Invoke {"mount -o remount,rw /usr";};
  334. Post-Invoke {"mount -o remount,ro /usr";};
  335. Chroot-Directory "/";
  336. // Prevents daemons from getting cwd as something mountable (default)
  337. Run-Directory "/";
  338. // Build options for apt-get source --compile
  339. Build-Options "-b -uc";
  340. // Pre-configure all packages before they are installed using debconf.
  341. Pre-Install-Pkgs {"dpkg-preconfigure --apt --priority=low --frontend=dialog";};
  342. // Flush the contents of stdin before forking dpkg.
  343. FlushSTDIN "true";
  344. // Control the size of the command line passed to dpkg.
  345. MaxBytes 1024;
  346. MaxArgs 350;
  347. // controls if apt will apport on the first dpkg error or if it
  348. // tries to install as many packages as possible
  349. StopOnError "true";
  350. }
  351. /* Options you can set to see some debugging text They correspond to names
  352. of classes in the source code */
  353. Debug
  354. {
  355. pkgProblemResolver "false";
  356. pkgProblemResolver::ShowScores "false";
  357. pkgDepCache::AutoInstall "false"; // what packages apt install to satify dependencies
  358. pkgDepCache::Marker "false";
  359. pkgCacheGen "false";
  360. pkgAcquire "false";
  361. pkgAcquire::Worker "false";
  362. pkgAcquire::Auth "false";
  363. pkgDPkgPM "false";
  364. pkgDPkgProgressReporting "false";
  365. pkgOrderList "false";
  366. pkgPackageManager "false"; // OrderList/Configure debugging
  367. pkgAutoRemove "false"; // show information about automatic removes
  368. BuildDeps "false";
  369. pkgInitialize "false"; // This one will dump the configuration space
  370. NoLocking "false";
  371. Acquire::Ftp "false"; // Show ftp command traffic
  372. Acquire::Http "false"; // Show http command traffic
  373. Acquire::Https "false"; // Show https debug
  374. Acquire::gpgv "false"; // Show the gpgv traffic
  375. Acquire::cdrom "false"; // Show cdrom debug output
  376. aptcdrom "false"; // Show found package files
  377. IdentCdrom "false";
  378. acquire::netrc "false"; // netrc parser
  379. }
  380. pkgCacheGen::Essential "native"; // other modes: all, none, installed
  381. /* Whatever you do, do not use this configuration file!! Take out ONLY
  382. the portions you need! */
  383. This Is Not A Valid Config File