apt.conf 4.9 KB

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