configure-index 6.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  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. Authentication
  68. {
  69. TrustCDROM "false"; // consider the CDROM always trusted
  70. };
  71. GPGV
  72. {
  73. TrustedKeyring "/etc/apt/trusted.gpg";
  74. };
  75. // Some general options
  76. Ignore-Hold "false";
  77. Clean-Installed "true";
  78. Immediate-Configure "true"; // DO NOT turn this off, see the man page
  79. Force-LoopBreak "false"; // DO NOT turn this on, see the man page
  80. Cache-Limit "4194304";
  81. Default-Release "";
  82. // Write progress messages on this fd (for stuff like base-config)
  83. Status-Fd "-1";
  84. // Keep the list of FDs open (normally apt closes all fds when it
  85. // does a ExecFork)
  86. Keep-Fds {};
  87. };
  88. // Options for the downloading routines
  89. Acquire
  90. {
  91. Queue-Mode "host"; // host|access
  92. Retries "0";
  93. Source-Symlinks "true";
  94. // HTTP method configuration
  95. http
  96. {
  97. Proxy "http://127.0.0.1:3128";
  98. Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
  99. Timeout "120";
  100. Pipeline-Depth "5";
  101. // Cache Control. Note these do not work with Squid 2.0.2
  102. No-Cache "false";
  103. Max-Age "86400"; // 1 Day age on index files
  104. No-Store "false"; // Prevent the cache from storing archives
  105. Dl-Limit "7"; // 7Kb/sec maximum download rate
  106. };
  107. ftp
  108. {
  109. Proxy "ftp://127.0.0.1/";
  110. Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
  111. /* Required script to perform proxy login. This example should work
  112. for tisfwtk */
  113. ProxyLogin
  114. {
  115. "USER $(PROXY_USER)";
  116. "PASS $(PROXY_PASS)";
  117. "USER $(SITE_USER)@$(SITE):$(SITE_PORT)";
  118. "PASS $(SITE_PASS)";
  119. };
  120. Timeout "120";
  121. /* Passive mode control, proxy, non-proxy and per-host. Pasv mode
  122. is prefered if possible */
  123. Passive "true";
  124. Proxy::Passive "true";
  125. Passive::http.us.debian.org "true"; // Specific per-host setting
  126. };
  127. cdrom
  128. {
  129. mount "/cdrom";
  130. // You need the trailing slash!
  131. "/cdrom/"
  132. {
  133. Mount "sleep 1000";
  134. UMount "sleep 500";
  135. }
  136. };
  137. gpgv
  138. {
  139. Options {"--ignore-time-conflict";} // not very usefull on a normal system
  140. };
  141. mirror
  142. {
  143. RefreshInterval "360"; // refresh interval in minutes
  144. MaxAge "90"; // max age for a mirror file in days before
  145. // it gets deleted
  146. };
  147. };
  148. // Directory layout
  149. Dir "/"
  150. {
  151. // Location of the state dir
  152. State "var/lib/apt/"
  153. {
  154. Lists "lists/";
  155. xstatus "xstatus";
  156. userstatus "status.user";
  157. status "/var/lib/dpkg/status";
  158. cdroms "cdroms.list";
  159. };
  160. // Location of the cache dir
  161. Cache "var/cache/apt/" {
  162. Archives "archives/";
  163. srcpkgcache "srcpkgcache.bin";
  164. pkgcache "pkgcache.bin";
  165. };
  166. // Config files
  167. Etc "etc/apt/" {
  168. SourceList "sources.list";
  169. Main "apt.conf";
  170. Preferences "preferences";
  171. Parts "apt.conf.d/";
  172. };
  173. // Locations of binaries
  174. Bin {
  175. methods "/usr/lib/apt/methods/";
  176. gzip "/bin/gzip";
  177. gpg "/usr/bin/gpgv";
  178. dpkg "/usr/bin/dpkg";
  179. dpkg-source "/usr/bin/dpkg-source";
  180. dpkg-buildpackage "/usr/bin/dpkg-buildpackage";
  181. apt-get "/usr/bin/apt-get";
  182. apt-cache "/usr/bin/apt-cache";
  183. };
  184. };
  185. // Things that effect the APT dselect method
  186. DSelect
  187. {
  188. Clean "auto"; // always|auto|prompt|never
  189. Options "-f";
  190. UpdateOptions "";
  191. PromptAfterUpdate "no";
  192. CheckDir "no";
  193. }
  194. DPkg
  195. {
  196. // Probably don't want to use force-downgrade..
  197. Options {"--force-overwrite";"--force-downgrade";}
  198. // Auto re-mounting of a readonly /usr
  199. Pre-Invoke {"mount -o remount,rw /usr";};
  200. Post-Invoke {"mount -o remount,ro /usr";};
  201. // Prevents daemons from getting cwd as something mountable (default)
  202. Run-Directory "/";
  203. // Build options for apt-get source --compile
  204. Build-Options "-b -uc";
  205. // Pre-configure all packages before they are installed using debconf.
  206. Pre-Install-Pkgs {"dpkg-preconfigure --apt --priority=low --frontend=dialog";};
  207. // Flush the contents of stdin before forking dpkg.
  208. FlushSTDIN "true";
  209. // Control the size of the command line passed to dpkg.
  210. MaxBytes 1024;
  211. MaxArgs 350;
  212. }
  213. /* Options you can set to see some debugging text They correspond to names
  214. of classes in the source code */
  215. Debug
  216. {
  217. pkgProblemResolver "false";
  218. pkgDepCache::AutoInstall "false"; // what packages apt install to satify dependencies
  219. pkgAcquire "false";
  220. pkgAcquire::Worker "false";
  221. pkgAcquire::Auth "false";
  222. pkgDPkgPM "false";
  223. pkgDPkgProgressReporting "false";
  224. pkgOrderList "false";
  225. BuildDeps "false";
  226. pkgInitialize "false"; // This one will dump the configuration space
  227. NoLocking "false";
  228. Acquire::Ftp "false"; // Show ftp command traffic
  229. Acquire::Http "false"; // Show http command traffic
  230. Acquire::gpgv "false"; // Show the gpgv traffic
  231. Acquire::Mirror "false"; // Show debugging of the mirror method
  232. aptcdrom "false"; // Show found package files
  233. IdentCdrom "false";
  234. }
  235. /* Whatever you do, do not use this configuration file!! Take out ONLY
  236. the portions you need! */
  237. This Is Not A Valid Config File