configure-index 8.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332
  1. /* This file is an index of all APT configuration directives. It should
  2. NOT actually be used as a real config file, though it is (except for the
  3. last line) a completely valid file. Most of the options have sane default
  4. values, unless you have specific needs you should NOT include arbitrary
  5. items in a custom configuration.
  6. In some instances involving filenames it is possible to set the default
  7. directory when the path is evaluated. This means you can use relative
  8. paths within the sub scope.
  9. The configuration directives are specified in a tree with {} designating
  10. a subscope relative to the tag before the {}. You can further specify
  11. a subscope using scope notation eg,
  12. APT::Architecture "i386";
  13. This is prefixed with the current scope. Scope notation must be used
  14. if an option is specified on the command line with -o.
  15. */
  16. quiet "0";
  17. // Options for APT in general
  18. APT
  19. {
  20. Architecture "i386";
  21. Build-Essential "build-essential";
  22. NeverAutoRemove { "linux-image.*"; }; // packages that should never
  23. // considered for autoRemove
  24. // Options for apt-get
  25. Get
  26. {
  27. Arch-Only "false";
  28. AllowUnauthenticated "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. Build-Dep-Automatic "true";
  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. // install recommends automatically for packages in this section
  97. Install-Recommends-Section { "metapackages"; "universe/metapackages"; };
  98. // consider dependencies of packages in this section manual
  99. Never-MarkAuto-Sections {"metapackages"; "universe/metapackages"; };
  100. // Write progress messages on this fd (for stuff like base-config)
  101. Status-Fd "-1";
  102. // Keep the list of FDs open (normally apt closes all fds when it
  103. // does a ExecFork)
  104. Keep-Fds {};
  105. };
  106. // Options for the downloading routines
  107. Acquire
  108. {
  109. Queue-Mode "host"; // host|access
  110. Retries "0";
  111. Source-Symlinks "true";
  112. PDiffs "true"; // try to get the IndexFile diffs
  113. // HTTP method configuration
  114. http
  115. {
  116. Proxy "http://127.0.0.1:3128";
  117. Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
  118. Timeout "120";
  119. Pipeline-Depth "5";
  120. AllowRedirect "true";
  121. // Cache Control. Note these do not work with Squid 2.0.2
  122. No-Cache "false";
  123. Max-Age "86400"; // 1 Day age on index files
  124. No-Store "false"; // Prevent the cache from storing archives
  125. Dl-Limit "7"; // 7Kb/sec maximum download rate
  126. };
  127. // HTTPS method configuration:
  128. // - uses the http proxy config
  129. // - uses the http cache-control values
  130. // - uses the http Dl-Limit values
  131. https
  132. {
  133. Verify-Peer "false";
  134. SslCert "/etc/apt/some.pem";
  135. CaPath "/etc/ssl/certs";
  136. Verify-Host" "true";
  137. AllowRedirect "true";
  138. };
  139. ftp
  140. {
  141. Proxy "ftp://127.0.0.1/";
  142. Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
  143. /* Required script to perform proxy login. This example should work
  144. for tisfwtk */
  145. ProxyLogin
  146. {
  147. "USER $(PROXY_USER)";
  148. "PASS $(PROXY_PASS)";
  149. "USER $(SITE_USER)@$(SITE):$(SITE_PORT)";
  150. "PASS $(SITE_PASS)";
  151. };
  152. Timeout "120";
  153. /* Passive mode control, proxy, non-proxy and per-host. Pasv mode
  154. is preferred if possible */
  155. Passive "true";
  156. Proxy::Passive "true";
  157. Passive::http.us.debian.org "true"; // Specific per-host setting
  158. };
  159. cdrom
  160. {
  161. mount "/cdrom";
  162. // You need the trailing slash!
  163. "/cdrom/"
  164. {
  165. Mount "sleep 1000";
  166. UMount "sleep 500";
  167. }
  168. };
  169. gpgv
  170. {
  171. Options {"--ignore-time-conflict";} // not very useful on a normal system
  172. };
  173. mirror
  174. {
  175. RefreshInterval "360"; // refresh interval in minutes
  176. MaxAge "90"; // max age for a mirror file in days before
  177. // it gets deleted
  178. // mirror failure reporting script
  179. ProblemReporting "/usr/lib/apt/apt-report-mirror-failure";
  180. // mirror failure reporting url
  181. ReportFailures "http://example.com/mirror-failure";
  182. };
  183. // translations can be set here to "none", "environment" or "$locale"
  184. Translation "none";
  185. };
  186. // Directory layout
  187. Dir "/"
  188. {
  189. // Location of the state dir
  190. State "var/lib/apt/"
  191. {
  192. Lists "lists/";
  193. xstatus "xstatus";
  194. userstatus "status.user";
  195. status "/var/lib/dpkg/status";
  196. cdroms "cdroms.list";
  197. mirrors "mirrors/";
  198. };
  199. // Location of the cache dir
  200. Cache "var/cache/apt/" {
  201. Archives "archives/";
  202. srcpkgcache "srcpkgcache.bin";
  203. pkgcache "pkgcache.bin";
  204. };
  205. // Config files
  206. Etc "etc/apt/" {
  207. SourceList "sources.list";
  208. Main "apt.conf";
  209. Preferences "preferences";
  210. Parts "apt.conf.d/";
  211. };
  212. // Locations of binaries
  213. Bin {
  214. methods "/usr/lib/apt/methods/";
  215. gzip "/bin/gzip";
  216. gpg "/usr/bin/gpgv";
  217. dpkg "/usr/bin/dpkg";
  218. dpkg-source "/usr/bin/dpkg-source";
  219. dpkg-buildpackage "/usr/bin/dpkg-buildpackage";
  220. apt-get "/usr/bin/apt-get";
  221. apt-cache "/usr/bin/apt-cache";
  222. };
  223. // Location of the logfile
  224. Log "var/log/apt" {
  225. Terminal "term.log";
  226. };
  227. };
  228. // Things that effect the APT dselect method
  229. DSelect
  230. {
  231. Clean "auto"; // always|auto|prompt|never
  232. Options "-f";
  233. UpdateOptions "";
  234. PromptAfterUpdate "no";
  235. CheckDir "no";
  236. }
  237. DPkg
  238. {
  239. // Probably don't want to use force-downgrade..
  240. Options {"--force-overwrite";"--force-downgrade";}
  241. // Auto re-mounting of a readonly /usr
  242. Pre-Invoke {"mount -o remount,rw /usr";};
  243. Post-Invoke {"mount -o remount,ro /usr";};
  244. // Prevents daemons from getting cwd as something mountable (default)
  245. Run-Directory "/";
  246. // Build options for apt-get source --compile
  247. Build-Options "-b -uc";
  248. // Pre-configure all packages before they are installed using debconf.
  249. Pre-Install-Pkgs {"dpkg-preconfigure --apt --priority=low --frontend=dialog";};
  250. // Flush the contents of stdin before forking dpkg.
  251. FlushSTDIN "true";
  252. // Control the size of the command line passed to dpkg.
  253. MaxBytes 1024;
  254. MaxArgs 350;
  255. // controls if apt will apport on the first dpkg error or if it
  256. // tries to install as many packages as possible
  257. StopOnError "true";
  258. }
  259. /* Options you can set to see some debugging text They correspond to names
  260. of classes in the source code */
  261. Debug
  262. {
  263. pkgProblemResolver "false";
  264. pkgDepCache::AutoInstall "false"; // what packages apt install to satify dependencies
  265. pkgAcquire "false";
  266. pkgAcquire::Worker "false";
  267. pkgAcquire::Auth "false";
  268. pkgDPkgPM "false";
  269. pkgDPkgProgressReporting "false";
  270. pkgOrderList "false";
  271. pkgAutoRemove "false"; // show information about automatic removes
  272. BuildDeps "false";
  273. pkgInitialize "false"; // This one will dump the configuration space
  274. NoLocking "false";
  275. Acquire::Ftp "false"; // Show ftp command traffic
  276. Acquire::Http "false"; // Show http command traffic
  277. Acquire::Https "false"; // Show https debug
  278. Acquire::gpgv "false"; // Show the gpgv traffic
  279. Acquire::Mirror "false"; // Show debugging of the mirror method
  280. aptcdrom "false"; // Show found package files
  281. IdentCdrom "false";
  282. }
  283. /* Whatever you do, do not use this configuration file!! Take out ONLY
  284. the portions you need! */
  285. This Is Not A Valid Config File