configure-index 13 KB

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