configure-index 13 KB

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