configure-index 8.7 KB

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