configure-index 5.9 KB

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