configure-index 5.4 KB

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