configure-index 8.1 KB

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