configure-index 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321
  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. Show-User-Simulation-Note "true";
  53. };
  54. Cache
  55. {
  56. Important "false";
  57. AllVersions "false";
  58. GivenOnly "false";
  59. RecurseDepends "false";
  60. ShowFull "false";
  61. Generate "true";
  62. NamesOnly "false";
  63. AllNames "false";
  64. Installed "false";
  65. };
  66. CDROM
  67. {
  68. Rename "false";
  69. NoMount "false";
  70. Fast "false";
  71. NoAct "false";
  72. };
  73. Update
  74. {
  75. Pre-Invoke {"touch /var/lib/apt/pre-update-stamp"; };
  76. Post-Invoke {"touch /var/lib/apt/post-update-stamp"; };
  77. };
  78. Authentication
  79. {
  80. TrustCDROM "false"; // consider the CDROM always trusted
  81. };
  82. GPGV
  83. {
  84. TrustedKeyring "/etc/apt/trusted.gpg";
  85. };
  86. // Some general options
  87. Ignore-Hold "false";
  88. Clean-Installed "true";
  89. Immediate-Configure "true"; // DO NOT turn this off, see the man page
  90. Force-LoopBreak "false"; // DO NOT turn this on, see the man page
  91. Cache-Limit "4194304";
  92. Default-Release "";
  93. // consider Recommends, Suggests as important dependencies that should
  94. // be installed by default
  95. Install-Recommends "true";
  96. Install-Suggests "false";
  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. AllowRedirect "true";
  120. // Cache Control. Note these do not work with Squid 2.0.2
  121. No-Cache "false";
  122. Max-Age "86400"; // 1 Day age on index files
  123. No-Store "false"; // Prevent the cache from storing archives
  124. Dl-Limit "7"; // 7Kb/sec maximum download rate
  125. };
  126. // HTTPS method configuration:
  127. // - uses the http proxy config
  128. // - uses the http cache-control values
  129. // - uses the http Dl-Limit values
  130. https
  131. {
  132. Verify-Peer "false";
  133. SslCert "/etc/apt/some.pem";
  134. CaPath "/etc/ssl/certs";
  135. Verify-Host" "true";
  136. AllowRedirect "true";
  137. };
  138. ftp
  139. {
  140. Proxy "ftp://127.0.0.1/";
  141. Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
  142. /* Required script to perform proxy login. This example should work
  143. for tisfwtk */
  144. ProxyLogin
  145. {
  146. "USER $(PROXY_USER)";
  147. "PASS $(PROXY_PASS)";
  148. "USER $(SITE_USER)@$(SITE):$(SITE_PORT)";
  149. "PASS $(SITE_PASS)";
  150. };
  151. Timeout "120";
  152. /* Passive mode control, proxy, non-proxy and per-host. Pasv mode
  153. is preferred if possible */
  154. Passive "true";
  155. Proxy::Passive "true";
  156. Passive::http.us.debian.org "true"; // Specific per-host setting
  157. };
  158. cdrom
  159. {
  160. mount "/cdrom";
  161. // You need the trailing slash!
  162. "/cdrom/"
  163. {
  164. Mount "sleep 1000";
  165. UMount "sleep 500";
  166. }
  167. };
  168. gpgv
  169. {
  170. Options {"--ignore-time-conflict";} // not very useful on a normal system
  171. };
  172. };
  173. // Directory layout
  174. Dir "/"
  175. {
  176. // Location of the state dir
  177. State "var/lib/apt/"
  178. {
  179. Lists "lists/";
  180. xstatus "xstatus";
  181. userstatus "status.user";
  182. status "/var/lib/dpkg/status";
  183. cdroms "cdroms.list";
  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. Main "apt.conf";
  194. Parts "apt.conf.d/";
  195. Preferences "preferences";
  196. PreferencesParts "preferences.d";
  197. SourceList "sources.list";
  198. SourceParts "sources.list.d";
  199. VendorList "vendors.list";
  200. VendorParts "vendors.list.d";
  201. };
  202. // Locations of binaries
  203. Bin {
  204. methods "/usr/lib/apt/methods/";
  205. gzip "/bin/gzip";
  206. gpg "/usr/bin/gpgv";
  207. dpkg "/usr/bin/dpkg";
  208. dpkg-source "/usr/bin/dpkg-source";
  209. dpkg-buildpackage "/usr/bin/dpkg-buildpackage";
  210. apt-get "/usr/bin/apt-get";
  211. apt-cache "/usr/bin/apt-cache";
  212. };
  213. // Location of the logfile
  214. Log "var/log/apt" {
  215. Terminal "term.log";
  216. };
  217. };
  218. // Things that effect the APT dselect method
  219. DSelect
  220. {
  221. Clean "auto"; // always|auto|prompt|never
  222. Options "-f";
  223. UpdateOptions "";
  224. PromptAfterUpdate "no";
  225. CheckDir "no";
  226. }
  227. DPkg
  228. {
  229. // Probably don't want to use force-downgrade..
  230. Options {"--force-overwrite";"--force-downgrade";}
  231. // Auto re-mounting of a readonly /usr
  232. Pre-Invoke {"mount -o remount,rw /usr";};
  233. Post-Invoke {"mount -o remount,ro /usr";};
  234. // Prevents daemons from getting cwd as something mountable (default)
  235. Run-Directory "/";
  236. // Build options for apt-get source --compile
  237. Build-Options "-b -uc";
  238. // Pre-configure all packages before they are installed using debconf.
  239. Pre-Install-Pkgs {"dpkg-preconfigure --apt --priority=low --frontend=dialog";};
  240. // Flush the contents of stdin before forking dpkg.
  241. FlushSTDIN "true";
  242. // Control the size of the command line passed to dpkg.
  243. MaxBytes 1024;
  244. MaxArgs 350;
  245. // controls if apt will apport on the first dpkg error or if it
  246. // tries to install as many packages as possible
  247. StopOnError "true";
  248. }
  249. /* Options you can set to see some debugging text They correspond to names
  250. of classes in the source code */
  251. Debug
  252. {
  253. pkgProblemResolver "false";
  254. pkgProblemResolver::ShowScores "false";
  255. pkgDepCache::AutoInstall "false"; // what packages apt install to satify dependencies
  256. pkgDepCache::Marker "false";
  257. pkgAcquire "false";
  258. pkgAcquire::Worker "false";
  259. pkgAcquire::Auth "false";
  260. pkgDPkgPM "false";
  261. pkgDPkgProgressReporting "false";
  262. pkgOrderList "false";
  263. pkgAutoRemove "false"; // show information about automatic removes
  264. BuildDeps "false";
  265. pkgInitialize "false"; // This one will dump the configuration space
  266. NoLocking "false";
  267. Acquire::Ftp "false"; // Show ftp command traffic
  268. Acquire::Http "false"; // Show http command traffic
  269. Acquire::Https "false"; // Show https debug
  270. Acquire::gpgv "false"; // Show the gpgv traffic
  271. aptcdrom "false"; // Show found package files
  272. IdentCdrom "false";
  273. }
  274. /* Whatever you do, do not use this configuration file!! Take out ONLY
  275. the portions you need! */
  276. This Is Not A Valid Config File