apt.conf 5.1 KB

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