apt.conf 5.2 KB

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