You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

260 lines
6.4 KiB

  1. // $Id: configure-index,v 1.10 2004/07/17 19:37:16 mdz 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 (except for the
  4. last line) a completely valid file. Most of the options have sane default
  5. values, unless you have specific needs you should NOT include arbitary
  6. items in a custom configuration.
  7. In some instances involving filenames it is possible to set the default
  8. directory when the path is evaluated. This means you can use relative
  9. paths within the sub scope.
  10. The configuration directives are specified in a tree with {} designating
  11. a subscope relative to the tag before the {}. You can further specify
  12. a subscope using scope notation eg,
  13. APT::Architecture "i386";
  14. This is prefixed with the current scope. Scope notation must be used
  15. if an option is specified on the command line with -o.
  16. */
  17. quiet "0";
  18. // Options for APT in general
  19. APT
  20. {
  21. Architecture "i386";
  22. Build-Essential "build-essential";
  23. // Options for apt-get
  24. Get
  25. {
  26. Arch-Only "false";
  27. Download-Only "false";
  28. Simulate "false";
  29. Assume-Yes "false";
  30. Force-Yes "false"; // I would never set this.
  31. Fix-Broken "false";
  32. Fix-Missing "false";
  33. Show-Upgraded "false";
  34. Show-Versions "false";
  35. Upgrade "true";
  36. Print-URIs "false";
  37. Compile "false";
  38. Download "true";
  39. Purge "false";
  40. List-Cleanup "true";
  41. ReInstall "false";
  42. Trivial-Only "false";
  43. Remove "true";
  44. Only-Source "";
  45. Diff-Only "false";
  46. Tar-Only "false";
  47. };
  48. Cache
  49. {
  50. Important "false";
  51. AllVersions "false";
  52. GivenOnly "false";
  53. RecurseDepends "false";
  54. ShowFull "false";
  55. Generate "true";
  56. NamesOnly "false";
  57. AllNames "false";
  58. Installed "false";
  59. };
  60. CDROM
  61. {
  62. Rename "false";
  63. NoMount "false";
  64. Fast "false";
  65. NoAct "false";
  66. };
  67. GPGV
  68. {
  69. TrustedKeyring "/etc/apt/trusted.gpg";
  70. };
  71. // Some general options
  72. Ignore-Hold "false";
  73. Clean-Installed "true";
  74. Immediate-Configure "true"; // DO NOT turn this off, see the man page
  75. Force-LoopBreak "false"; // DO NOT turn this on, see the man page
  76. Cache-Limit "4194304";
  77. Default-Release "";
  78. // Write progress messages on this fd (for stuff like base-config)
  79. Status-Fd "-1";
  80. // Keep the list of FDs open (normally apt closes all fds when it
  81. // does a ExecFork)
  82. Keep-Fds {};
  83. };
  84. // Options for the downloading routines
  85. Acquire
  86. {
  87. Queue-Mode "host"; // host|access
  88. Retries "0";
  89. Source-Symlinks "true";
  90. // HTTP method configuration
  91. http
  92. {
  93. Proxy "http://127.0.0.1:3128";
  94. Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
  95. Timeout "120";
  96. Pipeline-Depth "5";
  97. // Cache Control. Note these do not work with Squid 2.0.2
  98. No-Cache "false";
  99. Max-Age "86400"; // 1 Day age on index files
  100. No-Store "false"; // Prevent the cache from storing archives
  101. };
  102. ftp
  103. {
  104. Proxy "ftp://127.0.0.1/";
  105. Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
  106. /* Required script to perform proxy login. This example should work
  107. for tisfwtk */
  108. ProxyLogin
  109. {
  110. "USER $(PROXY_USER)";
  111. "PASS $(PROXY_PASS)";
  112. "USER $(SITE_USER)@$(SITE):$(SITE_PORT)";
  113. "PASS $(SITE_PASS)";
  114. };
  115. Timeout "120";
  116. /* Passive mode control, proxy, non-proxy and per-host. Pasv mode
  117. is prefered if possible */
  118. Passive "true";
  119. Proxy::Passive "true";
  120. Passive::http.us.debian.org "true"; // Specific per-host setting
  121. };
  122. cdrom
  123. {
  124. mount "/cdrom";
  125. // You need the trailing slash!
  126. "/cdrom/"
  127. {
  128. Mount "sleep 1000";
  129. UMount "sleep 500";
  130. }
  131. };
  132. gpgv
  133. {
  134. Options {"--ignore-time-conflict";} // not very usefull on a normal system
  135. };
  136. };
  137. // Directory layout
  138. Dir "/"
  139. {
  140. // Location of the state dir
  141. State "var/lib/apt/"
  142. {
  143. Lists "lists/";
  144. xstatus "xstatus";
  145. userstatus "status.user";
  146. status "/var/lib/dpkg/status";
  147. cdroms "cdroms.list";
  148. };
  149. // Location of the cache dir
  150. Cache "var/cache/apt/" {
  151. Archives "archives/";
  152. srcpkgcache "srcpkgcache.bin";
  153. pkgcache "pkgcache.bin";
  154. };
  155. // Config files
  156. Etc "etc/apt/" {
  157. SourceList "sources.list";
  158. Main "apt.conf";
  159. Preferences "preferences";
  160. Parts "apt.conf.d/";
  161. };
  162. // Locations of binaries
  163. Bin {
  164. methods "/usr/lib/apt/methods/";
  165. gzip "/bin/gzip";
  166. gpg "/usr/bin/gpgv";
  167. dpkg "/usr/bin/dpkg";
  168. dpkg-source "/usr/bin/dpkg-source";
  169. dpkg-buildpackage "/usr/bin/dpkg-buildpackage";
  170. apt-get "/usr/bin/apt-get";
  171. apt-cache "/usr/bin/apt-cache";
  172. };
  173. };
  174. // Things that effect the APT dselect method
  175. DSelect
  176. {
  177. Clean "auto"; // always|auto|prompt|never
  178. Options "-f";
  179. UpdateOptions "";
  180. PromptAfterUpdate "no";
  181. CheckDir "no";
  182. }
  183. DPkg
  184. {
  185. // Probably don't want to use force-downgrade..
  186. Options {"--force-overwrite";"--force-downgrade";}
  187. // Auto re-mounting of a readonly /usr
  188. Pre-Invoke {"mount -o remount,rw /usr";};
  189. Post-Invoke {"mount -o remount,ro /usr";};
  190. // Prevents daemons from getting cwd as something mountable (default)
  191. Run-Directory "/";
  192. // Build options for apt-get source --compile
  193. Build-Options "-b -uc";
  194. // Pre-configure all packages before they are installed using debconf.
  195. Pre-Install-Pkgs {"dpkg-preconfigure --apt --priority=low --frontend=dialog";};
  196. // Flush the contents of stdin before forking dpkg.
  197. FlushSTDIN "true";
  198. // Control the size of the command line passed to dpkg.
  199. MaxBytes 1024;
  200. MaxArgs 350;
  201. }
  202. /* Options you can set to see some debugging text They correspond to names
  203. of classes in the source code */
  204. Debug
  205. {
  206. pkgProblemResolver "false";
  207. pkgAcquire "false";
  208. pkgAcquire::Worker "false";
  209. pkgDPkgPM "false";
  210. pkgDPkgProgressReporting "false";
  211. pkgOrderList "false";
  212. pkgInitialize "false"; // This one will dump the configuration space
  213. NoLocking "false";
  214. Acquire::Ftp "false"; // Show ftp command traffic
  215. Acquire::Http "false"; // Show http command traffic
  216. Acquire::gpgv "false"; // Show the gpgv traffic
  217. aptcdrom "false"; // Show found package files
  218. IdentCdrom "false";
  219. }
  220. /* Whatever you do, do not use this configuration file!! Take out ONLY
  221. the portions you need! */
  222. This Is Not A Valid Config File