apt.conf 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. // $Id: apt.conf,v 1.28 1999/03/15 23:05:49 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. Ingore-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. };
  87. };
  88. // Directory layout
  89. Dir
  90. {
  91. // Location of the state dir
  92. State "/var/state/apt/"
  93. {
  94. lists "lists/";
  95. xstatus "xstatus";
  96. userstatus "status.user";
  97. status "/var/lib/dpkg/status";
  98. cdroms "cdroms.list";
  99. };
  100. // Location of the cache dir
  101. Cache "/var/cache/apt/" {
  102. archives "archives/";
  103. srcpkgcache "srcpkgcache.bin";
  104. pkgcache "pkgcache.bin";
  105. };
  106. // Config files
  107. Etc "/etc/apt/" {
  108. sourcelist "sources.list";
  109. main "apt.conf";
  110. };
  111. // Locations of binaries
  112. Bin {
  113. methods "/usr/lib/apt/methods/";
  114. gzip "/bin/gzip";
  115. dpkg "/usr/bin/dpkg";
  116. apt-get "/usr/bin/apt-get";
  117. apt-cache "/usr/bin/apt-get";
  118. };
  119. };
  120. // Things that effect the APT dselect method
  121. DSelect
  122. {
  123. Clean "auto"; // always|auto|prompt|never
  124. Options "-f";
  125. UpdateOptions "";
  126. PromptAfterUpdate "no";
  127. }
  128. DPkg
  129. {
  130. // Probably don't want to set this one..
  131. Options {"--force-downgrade";}
  132. // Auto re-mounting of a readonly /usr
  133. Pre-Invoke {"mount -o remount,rw /usr";};
  134. Post-Invoke {"mount -o remount,ro /usr";};
  135. // Prevents daemons from getting cwd as something mountable (default)
  136. Run-Directory "/";
  137. }
  138. /* Options you can set to see some debugging text They corrispond to names
  139. of classes in the source code */
  140. Debug
  141. {
  142. pkgProblemResolver "false";
  143. pkgAcquire "false";
  144. pkgAcquire::Worker "false";
  145. pkgDPkgPM "false";
  146. pkgInitialize "false"; // This one will dump the configuration space
  147. NoLocking "false";
  148. Acquire::Ftp "false"; // Show ftp command traffic
  149. }