configure-index 12 KB

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