configure-index 12 KB

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