configure-index 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364
  1. // $Id: configure-index,v 1.10 2004/07/17 19:37:16 mdz Exp $
  2. /* This file is an index of all APT configuration directives. It should
  3. NOT actually be used as a real config file, though it is (except for the
  4. last line) a completely valid file. Most of the options have sane default
  5. values, unless you have specific needs you should NOT include arbitrary
  6. items in a custom configuration.
  7. In some instances involving filenames it is possible to set the default
  8. directory when the path is evaluated. This means you can use relative
  9. paths within the sub scope.
  10. The configuration directives are specified in a tree with {} designating
  11. a subscope relative to the tag before the {}. You can further specify
  12. a subscope using scope notation eg,
  13. APT::Architecture "i386";
  14. This is prefixed with the current scope. Scope notation must be used
  15. if an option is specified on the command line with -o.
  16. */
  17. quiet "0";
  18. // Options for APT in general
  19. APT
  20. {
  21. Architecture "i386";
  22. Build-Essential "build-essential";
  23. NeverAutoRemove { "linux-kernel.*"; }; // packages that should never
  24. // considered for autoRemove
  25. // Options for apt-get
  26. Get
  27. {
  28. Arch-Only "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. };
  53. Cache
  54. {
  55. Important "false";
  56. AllVersions "false";
  57. GivenOnly "false";
  58. RecurseDepends "false";
  59. ShowFull "false";
  60. Generate "true";
  61. NamesOnly "false";
  62. AllNames "false";
  63. Installed "false";
  64. };
  65. CDROM
  66. {
  67. Rename "false";
  68. NoMount "false";
  69. Fast "false";
  70. NoAct "false";
  71. };
  72. Update
  73. {
  74. Pre-Invoke {"touch /var/lib/apt/pre-update-stamp"; };
  75. Post-Invoke {"touch /var/lib/apt/post-update-stamp"; };
  76. };
  77. Authentication
  78. {
  79. TrustCDROM "false"; // consider the CDROM always trusted
  80. };
  81. GPGV
  82. {
  83. TrustedKeyring "/etc/apt/trusted.gpg";
  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-Limit "4194304";
  91. Default-Release "";
  92. // consider Recommends, Suggests as important dependencies that should
  93. // be installed by default
  94. Install-Recommends "false";
  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. // control parameters for cron jobs by /etc/cron.daily/apt
  104. Periodic
  105. {
  106. BackupArchiveInterval "0";
  107. // - Backup after n-days if archive contents changed.(0=disable)
  108. BackupLevel "3";
  109. // - Backup level.(0=disable), 1 is invalid.
  110. // APT::Archives::MaxAge "0"; (old, deprecated)
  111. MaxAge "0"; // (new)
  112. // - Set maximum allowed age of a cache package file. If a cache
  113. // package file is older it is deleted (0=disable)
  114. // APT::Archives::MinAge "2"; (old, deprecated)
  115. MinAge "2"; // (new)
  116. // - Set minimum age of a package file. If a file is younger it
  117. // will not be deleted (0=disable). Usefull to prevent races
  118. // and to keep backups of the packages for emergency.
  119. // APT::Archives::MaxSize "0"; (old, deprecated)
  120. MaxSize "0"; // (new)
  121. // - Set maximum size of the cache in MB (0=disable). If the cache
  122. // is bigger, cached package files are deleted until the size
  123. // requirement is met (the biggest packages will be deleted
  124. // first).
  125. Update-Package-Lists "0";
  126. // - Do "apt-get update" automatically every n-days (0=disable)
  127. //
  128. Download-Upgradeable-Packages "0";
  129. // - Do "apt-get upgrade --download-only" every n-days (0=disable)
  130. //
  131. Unattended-Upgrade "0";
  132. // - Run the "unattended-upgrade" security upgrade script
  133. // every n-days (0=disabled)
  134. // Requires the package "unattended-upgrades" and will write
  135. // a log in /var/log/unattended-upgrades
  136. //
  137. AutocleanInterval "0";
  138. // - Do "apt-get autoclean" every n-days (0=disable)
  139. Verbose "0";
  140. // - Send report mail to root
  141. // 0: no report (or null string)
  142. // 1: progress report (actually any string)
  143. // 2: + command outputs (remove -qq, remove 2>/dev/null, add -d)
  144. // 3: + trace on
  145. };
  146. };
  147. // Options for the downloading routines
  148. Acquire
  149. {
  150. Queue-Mode "host"; // host|access
  151. Retries "0";
  152. Source-Symlinks "true";
  153. PDiffs "true"; // try to get the IndexFile diffs
  154. // HTTP method configuration
  155. http
  156. {
  157. Proxy "http://127.0.0.1:3128";
  158. Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
  159. Timeout "120";
  160. Pipeline-Depth "5";
  161. // Cache Control. Note these do not work with Squid 2.0.2
  162. No-Cache "false";
  163. Max-Age "86400"; // 1 Day age on index files
  164. No-Store "false"; // Prevent the cache from storing archives
  165. Dl-Limit "7"; // 7Kb/sec maximum download rate
  166. };
  167. // HTTPS method configuration:
  168. // - uses the http proxy config
  169. // - uses the http cache-control values
  170. // - uses the http Dl-Limit values
  171. https
  172. {
  173. Verify-Peer "false";
  174. SslCert "/etc/apt/some.pem";
  175. CaPath "/etc/ssl/certs";
  176. Verify-Host" "2";
  177. };
  178. ftp
  179. {
  180. Proxy "ftp://127.0.0.1/";
  181. Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
  182. /* Required script to perform proxy login. This example should work
  183. for tisfwtk */
  184. ProxyLogin
  185. {
  186. "USER $(PROXY_USER)";
  187. "PASS $(PROXY_PASS)";
  188. "USER $(SITE_USER)@$(SITE):$(SITE_PORT)";
  189. "PASS $(SITE_PASS)";
  190. };
  191. Timeout "120";
  192. /* Passive mode control, proxy, non-proxy and per-host. Pasv mode
  193. is preferred if possible */
  194. Passive "true";
  195. Proxy::Passive "true";
  196. Passive::http.us.debian.org "true"; // Specific per-host setting
  197. };
  198. cdrom
  199. {
  200. mount "/cdrom";
  201. // You need the trailing slash!
  202. "/cdrom/"
  203. {
  204. Mount "sleep 1000";
  205. UMount "sleep 500";
  206. }
  207. };
  208. gpgv
  209. {
  210. Options {"--ignore-time-conflict";} // not very useful on a normal system
  211. };
  212. };
  213. // Directory layout
  214. Dir "/"
  215. {
  216. // Location of the state dir
  217. State "var/lib/apt/"
  218. {
  219. Lists "lists/";
  220. xstatus "xstatus";
  221. userstatus "status.user";
  222. status "/var/lib/dpkg/status";
  223. cdroms "cdroms.list";
  224. };
  225. // Location of the cache dir
  226. Cache "var/cache/apt/" {
  227. Archives "archives/";
  228. // backup directory created by /etc/cron.daily/apt
  229. Backup "backup/";
  230. srcpkgcache "srcpkgcache.bin";
  231. pkgcache "pkgcache.bin";
  232. };
  233. // Config files
  234. Etc "etc/apt/" {
  235. SourceList "sources.list";
  236. Main "apt.conf";
  237. Preferences "preferences";
  238. Parts "apt.conf.d/";
  239. };
  240. // Locations of binaries
  241. Bin {
  242. methods "/usr/lib/apt/methods/";
  243. gzip "/bin/gzip";
  244. gpg "/usr/bin/gpgv";
  245. dpkg "/usr/bin/dpkg";
  246. dpkg-source "/usr/bin/dpkg-source";
  247. dpkg-buildpackage "/usr/bin/dpkg-buildpackage";
  248. apt-get "/usr/bin/apt-get";
  249. apt-cache "/usr/bin/apt-cache";
  250. };
  251. // Location of the logfile
  252. Log "var/log/apt" {
  253. Terminal "term.log";
  254. };
  255. };
  256. // Things that effect the APT dselect method
  257. DSelect
  258. {
  259. Clean "auto"; // always|auto|prompt|never
  260. Options "-f";
  261. UpdateOptions "";
  262. PromptAfterUpdate "no";
  263. CheckDir "no";
  264. }
  265. DPkg
  266. {
  267. // Probably don't want to use force-downgrade..
  268. Options {"--force-overwrite";"--force-downgrade";}
  269. // Auto re-mounting of a readonly /usr
  270. Pre-Invoke {"mount -o remount,rw /usr";};
  271. Post-Invoke {"mount -o remount,ro /usr";};
  272. // Prevents daemons from getting cwd as something mountable (default)
  273. Run-Directory "/";
  274. // Build options for apt-get source --compile
  275. Build-Options "-b -uc";
  276. // Pre-configure all packages before they are installed using debconf.
  277. Pre-Install-Pkgs {"dpkg-preconfigure --apt --priority=low --frontend=dialog";};
  278. // Flush the contents of stdin before forking dpkg.
  279. FlushSTDIN "true";
  280. // Control the size of the command line passed to dpkg.
  281. MaxBytes 1024;
  282. MaxArgs 350;
  283. // controls if apt will apport on the first dpkg error or if it
  284. // tries to install as many packages as possible
  285. StopOnError "true";
  286. }
  287. /* Options you can set to see some debugging text They correspond to names
  288. of classes in the source code */
  289. Debug
  290. {
  291. pkgProblemResolver "false";
  292. pkgDepCache::AutoInstall "false"; // what packages apt install to satify dependencies
  293. pkgAcquire "false";
  294. pkgAcquire::Worker "false";
  295. pkgAcquire::Auth "false";
  296. pkgDPkgPM "false";
  297. pkgDPkgProgressReporting "false";
  298. pkgOrderList "false";
  299. pkgAutoRemove "false"; // show information about automatic removes
  300. BuildDeps "false";
  301. pkgInitialize "false"; // This one will dump the configuration space
  302. NoLocking "false";
  303. Acquire::Ftp "false"; // Show ftp command traffic
  304. Acquire::Http "false"; // Show http command traffic
  305. Acquire::Https "false"; // Show https debug
  306. Acquire::gpgv "false"; // Show the gpgv traffic
  307. aptcdrom "false"; // Show found package files
  308. IdentCdrom "false";
  309. }
  310. /* Whatever you do, do not use this configuration file!! Take out ONLY
  311. the portions you need! */
  312. This Is Not A Valid Config File