configure-index 6.6 KB

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