configure-index 7.0 KB

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