configure-index 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219
  1. // $Id: configure-index,v 1.3 2001/02/20 07:03:17 jgg 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 a completely
  4. valid file. Most of the options have sane default values, unless
  5. you have specific needs you should NOT include arbitary items in a custom
  6. 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. // Options for APT in general
  18. APT
  19. {
  20. Architecture "i386";
  21. // Options for apt-get
  22. Get
  23. {
  24. Download-Only "false";
  25. Simulate "false";
  26. Assume-Yes "false";
  27. Force-Yes "false"; // I would never set this.
  28. Fix-Broken "false";
  29. Fix-Missing "false";
  30. Show-Upgraded "false";
  31. Upgrade "true";
  32. Print-URIs "false";
  33. Compile "false";
  34. Download "true";
  35. Purge "false";
  36. List-Cleanup "true";
  37. ReInstall "false";
  38. Trivial-Only "false";
  39. Remove "true";
  40. };
  41. Cache
  42. {
  43. Important "false";
  44. AllVersions "false";
  45. GivenOnly "false";
  46. RecruseDepends "false";
  47. };
  48. CDROM
  49. {
  50. Rename "false";
  51. NoMount "false";
  52. Fast "false";
  53. NoAct "false";
  54. };
  55. // Some general options
  56. Ignore-Hold "false";
  57. Clean-Installed "true";
  58. Immediate-Configure "true"; // DO NOT turn this off, see the man page
  59. Force-LoopBreak "false"; // DO NOT turn this on, see the man page
  60. Cache-Limit "4194304";
  61. };
  62. // Options for the downloading routines
  63. Acquire
  64. {
  65. Queue-Mode "host"; // host|access
  66. Retries "0";
  67. Source-Symlinks "true";
  68. // HTTP method configuration
  69. http
  70. {
  71. Proxy "http://127.0.0.1:3128";
  72. Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
  73. Timeout "120";
  74. Pipeline-Depth "5";
  75. // Cache Control. Note these do not work with Squid 2.0.2
  76. No-Cache "false";
  77. Max-Age "86400"; // 1 Day age on index files
  78. No-Store "false"; // Prevent the cache from storing archives
  79. };
  80. ftp
  81. {
  82. Proxy "ftp://127.0.0.1/";
  83. Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
  84. /* Required script to perform proxy login. This example should work
  85. for tisfwtk */
  86. ProxyLogin
  87. {
  88. "USER $(PROXY_USER)";
  89. "PASS $(PROXY_PASS)";
  90. "USER $(SITE_USER)@$(SITE):$(SITE_PORT)";
  91. "PASS $(SITE_PASS)";
  92. };
  93. Timeout "120";
  94. /* Passive mode control, proxy, non-proxy and per-host. Pasv mode
  95. is prefered if possible */
  96. Passive "true";
  97. Proxy::Passive "true";
  98. Passive::http.us.debian.org "true"; // Specific per-host setting
  99. };
  100. cdrom
  101. {
  102. Mount "/cdrom";
  103. // You need the trailing slash!
  104. "/cdrom/"
  105. {
  106. Mount "sleep 1000";
  107. UMount "sleep 500";
  108. }
  109. };
  110. };
  111. // Directory layout
  112. Dir "/"
  113. {
  114. // Location of the state dir
  115. State "var/lib/apt/"
  116. {
  117. lists "lists/";
  118. xstatus "xstatus";
  119. userstatus "status.user";
  120. status "/var/lib/dpkg/status";
  121. cdroms "cdroms.list";
  122. };
  123. // Location of the cache dir
  124. Cache "var/cache/apt/" {
  125. archives "archives/";
  126. srcpkgcache "srcpkgcache.bin";
  127. pkgcache "pkgcache.bin";
  128. };
  129. // Config files
  130. Etc "etc/apt/" {
  131. sourcelist "sources.list";
  132. main "apt.conf";
  133. preferences "preferences";
  134. };
  135. // Locations of binaries
  136. Bin {
  137. methods "/usr/lib/apt/methods/";
  138. gzip "/bin/gzip";
  139. dpkg "/usr/bin/dpkg";
  140. dpkg-source "/usr/bin/dpkg-source";
  141. dpkg-buildpackage "/usr/bin/dpkg-buildpackage"
  142. apt-get "/usr/bin/apt-get";
  143. apt-cache "/usr/bin/apt-cache";
  144. };
  145. };
  146. // Things that effect the APT dselect method
  147. DSelect
  148. {
  149. Clean "auto"; // always|auto|prompt|never
  150. Options "-f";
  151. UpdateOptions "";
  152. PromptAfterUpdate "no";
  153. CheckDir "no";
  154. }
  155. DPkg
  156. {
  157. // Probably don't want to use force-downgrade..
  158. Options {"--force-overwrite";"--force-downgrade";}
  159. // Auto re-mounting of a readonly /usr
  160. Pre-Invoke {"mount -o remount,rw /usr";};
  161. Post-Invoke {"mount -o remount,ro /usr";};
  162. // Prevents daemons from getting cwd as something mountable (default)
  163. Run-Directory "/";
  164. // Build options for apt-get source --compile
  165. Build-Options "-b -uc";
  166. // Pre-configure all packages before they are installed using debconf.
  167. Pre-Install-Pkgs {"dpkg-preconfig --apt --priority=low --frontend=dialog";};
  168. // Flush the contents of stdin before forking dpkg.
  169. FlushSTDIN "true";
  170. }
  171. /* Options you can set to see some debugging text They corrispond to names
  172. of classes in the source code */
  173. Debug
  174. {
  175. pkgProblemResolver "false";
  176. pkgAcquire "false";
  177. pkgAcquire::Worker "false";
  178. pkgDPkgPM "false";
  179. pkgOrderList "false";
  180. pkgInitialize "false"; // This one will dump the configuration space
  181. NoLocking "false";
  182. Acquire::Ftp "false"; // Show ftp command traffic
  183. Acquire::Http "false"; // Show http command traffic
  184. aptcdrom "false"; // Show found package files
  185. }
  186. /* Whatever you do, do not use this configuration file!! Take out ONLY
  187. the portions you need! */
  188. This Is Not A Valid Config File