apt.conf 4.2 KB

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