configure-index 6.3 KB

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