apt.conf 4.4 KB

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