configure-index 13 KB

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