apt.conf 4.5 KB

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