configure-index 8.0 KB

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