configure-index 13 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. 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. // consider dependencies of packages in this section manual
  99. Never-MarkAuto-Sections {"metapackages"; "universe/metapackages"; };
  100. // Write progress messages on this fd (for stuff like base-config)
  101. Status-Fd "-1";
  102. // Keep the list of FDs open (normally apt closes all fds when it
  103. // does a ExecFork)
  104. Keep-Fds {};
  105. // control parameters for cron jobs by /etc/cron.daily/apt
  106. Periodic
  107. {
  108. BackupArchiveInterval "0";
  109. // - Backup after n-days if archive contents changed.(0=disable)
  110. BackupLevel "3";
  111. // - Backup level.(0=disable), 1 is invalid.
  112. // APT::Archives::MaxAge "0"; (old, deprecated)
  113. MaxAge "0"; // (new)
  114. // - Set maximum allowed age of a cache package file. If a cache
  115. // package file is older it is deleted (0=disable)
  116. // APT::Archives::MinAge "2"; (old, deprecated)
  117. MinAge "2"; // (new)
  118. // - Set minimum age of a package file. If a file is younger it
  119. // will not be deleted (0=disable). Useful to prevent races
  120. // and to keep backups of the packages for emergency.
  121. // APT::Archives::MaxSize "0"; (old, deprecated)
  122. MaxSize "0"; // (new)
  123. // - Set maximum size of the cache in MB (0=disable). If the cache
  124. // is bigger, cached package files are deleted until the size
  125. // requirement is met (the oldest packages will be deleted
  126. // first).
  127. Update-Package-Lists "0";
  128. // - Do "apt-get update" automatically every n-days (0=disable)
  129. //
  130. Download-Upgradeable-Packages "0";
  131. // - Do "apt-get upgrade --download-only" every n-days (0=disable)
  132. //
  133. Unattended-Upgrade "0";
  134. // - Run the "unattended-upgrade" security upgrade script
  135. // every n-days (0=disabled)
  136. // Requires the package "unattended-upgrades" and will write
  137. // a log in /var/log/unattended-upgrades
  138. //
  139. AutocleanInterval "0";
  140. // - Do "apt-get autoclean" every n-days (0=disable)
  141. Verbose "0";
  142. // - Send report mail to root
  143. // 0: no report (or null string)
  144. // 1: progress report (actually any string)
  145. // 2: + command outputs (remove -qq, remove 2>/dev/null, add -d)
  146. // 3: + trace on
  147. };
  148. };
  149. // Options for the downloading routines
  150. Acquire
  151. {
  152. Queue-Mode "host"; // host|access
  153. Retries "0";
  154. Source-Symlinks "true";
  155. ForceHash "sha256"; // hashmethod used for expected hash: sha256, sha1 or md5sum
  156. PDiffs "true"; // try to get the IndexFile diffs
  157. PDiffs::FileLimit "4"; // don't use diffs if we would need more than 4 diffs
  158. PDiffs::SizeLimit "50"; // don't use diffs if size of all patches excess
  159. // 50% of the size of the original file
  160. Check-Valid-Until "true";
  161. Max-ValidTime "864000"; // 10 days
  162. Max-ValidTime::Debian-Security "604800"; // 7 days, label specific configuration
  163. // HTTP method configuration
  164. http
  165. {
  166. Proxy "http://127.0.0.1:3128";
  167. Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
  168. Timeout "120";
  169. Pipeline-Depth "5";
  170. AllowRedirect "true";
  171. // Cache Control. Note these do not work with Squid 2.0.2
  172. No-Cache "false";
  173. Max-Age "86400"; // 1 Day age on index files
  174. No-Store "false"; // Prevent the cache from storing archives
  175. Dl-Limit "7"; // 7Kb/sec maximum download rate
  176. User-Agent "Debian APT-HTTP/1.3";
  177. };
  178. // HTTPS method configuration: uses the http
  179. // - proxy config
  180. // - cache-control values
  181. // - Dl-Limit, Timout, ... values
  182. // if not set explicit for https
  183. //
  184. // see /usr/share/doc/apt/examples/apt-https-method-example.conf.gz
  185. // for more examples
  186. https
  187. {
  188. Verify-Peer "false";
  189. SslCert "/etc/apt/some.pem";
  190. CaPath "/etc/ssl/certs";
  191. Verify-Host "true";
  192. AllowRedirect "true";
  193. Timeout "120";
  194. AllowRedirect "true";
  195. // Cache Control. Note these do not work with Squid 2.0.2
  196. No-Cache "false";
  197. Max-Age "86400"; // 1 Day age on index files
  198. No-Store "false"; // Prevent the cache from storing archives
  199. Dl-Limit "7"; // 7Kb/sec maximum download rate
  200. User-Agent "Debian APT-CURL/1.0";
  201. };
  202. ftp
  203. {
  204. Proxy "ftp://127.0.0.1/";
  205. Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
  206. /* Required script to perform proxy login. This example should work
  207. for tisfwtk */
  208. ProxyLogin
  209. {
  210. "USER $(PROXY_USER)";
  211. "PASS $(PROXY_PASS)";
  212. "USER $(SITE_USER)@$(SITE):$(SITE_PORT)";
  213. "PASS $(SITE_PASS)";
  214. };
  215. Timeout "120";
  216. /* Passive mode control, proxy, non-proxy and per-host. Pasv mode
  217. is preferred if possible */
  218. Passive "true";
  219. Proxy::Passive "true";
  220. Passive::http.us.debian.org "true"; // Specific per-host setting
  221. };
  222. cdrom
  223. {
  224. // do auto detection of the cdrom mountpoint
  225. AutoDetect "true";
  226. // when auto-detecting, only look for cdrom/dvd. when this is false
  227. // it will support any removable device as a "cdrom" source
  228. CdromOnly "true";
  229. // cdrom mountpoint (needs to be defined in fstab if AutoDetect is not used)
  230. mount "/cdrom";
  231. // You need the trailing slash!
  232. "/cdrom/"
  233. {
  234. Mount "sleep 1000";
  235. UMount "sleep 500";
  236. }
  237. };
  238. gpgv
  239. {
  240. Options {"--ignore-time-conflict";} // not very useful on a normal system
  241. };
  242. CompressionTypes
  243. {
  244. bz2 "bzip2";
  245. lzma "lzma";
  246. gz "gzip";
  247. Order { "uncompressed"; "gz"; "lzma"; "bz2"; };
  248. };
  249. Languages
  250. {
  251. "environment";
  252. "de";
  253. "en";
  254. "none";
  255. "fr";
  256. };
  257. // Location of the changelogs with the placeholder CHANGEPATH (e.g. "main/a/apt/apt_1.1")
  258. Changelogs::URI::Origin::Debian "http://metadata.ftp-master.debian.org/changelogs/CHANGEPATH_changelog";
  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. 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. MaxArgBytes 32768;
  352. MaxArgs 8192;
  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. RunScripts "false"; // debug invocation of external scripts
  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