apt.conf 5.3 KB

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