configure-index 12 KB

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