You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

316 lines
8.1 KiB

  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. // 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. AllowRedirect "true";
  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" "true";
  135. AllowRedirect "true";
  136. };
  137. ftp
  138. {
  139. Proxy "ftp://127.0.0.1/";
  140. Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
  141. /* Required script to perform proxy login. This example should work
  142. for tisfwtk */
  143. ProxyLogin
  144. {
  145. "USER $(PROXY_USER)";
  146. "PASS $(PROXY_PASS)";
  147. "USER $(SITE_USER)@$(SITE):$(SITE_PORT)";
  148. "PASS $(SITE_PASS)";
  149. };
  150. Timeout "120";
  151. /* Passive mode control, proxy, non-proxy and per-host. Pasv mode
  152. is preferred if possible */
  153. Passive "true";
  154. Proxy::Passive "true";
  155. Passive::http.us.debian.org "true"; // Specific per-host setting
  156. };
  157. cdrom
  158. {
  159. mount "/cdrom";
  160. // You need the trailing slash!
  161. "/cdrom/"
  162. {
  163. Mount "sleep 1000";
  164. UMount "sleep 500";
  165. }
  166. };
  167. gpgv
  168. {
  169. Options {"--ignore-time-conflict";} // not very useful on a normal system
  170. };
  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. };
  184. // Location of the cache dir
  185. Cache "var/cache/apt/" {
  186. Archives "archives/";
  187. srcpkgcache "srcpkgcache.bin";
  188. pkgcache "pkgcache.bin";
  189. };
  190. // Config files
  191. Etc "etc/apt/" {
  192. SourceList "sources.list";
  193. Main "apt.conf";
  194. Preferences "preferences";
  195. Parts "apt.conf.d/";
  196. };
  197. // Locations of binaries
  198. Bin {
  199. methods "/usr/lib/apt/methods/";
  200. gzip "/bin/gzip";
  201. gpg "/usr/bin/gpgv";
  202. dpkg "/usr/bin/dpkg";
  203. dpkg-source "/usr/bin/dpkg-source";
  204. dpkg-buildpackage "/usr/bin/dpkg-buildpackage";
  205. apt-get "/usr/bin/apt-get";
  206. apt-cache "/usr/bin/apt-cache";
  207. };
  208. // Location of the logfile
  209. Log "var/log/apt" {
  210. Terminal "term.log";
  211. };
  212. };
  213. // Things that effect the APT dselect method
  214. DSelect
  215. {
  216. Clean "auto"; // always|auto|prompt|never
  217. Options "-f";
  218. UpdateOptions "";
  219. PromptAfterUpdate "no";
  220. CheckDir "no";
  221. }
  222. DPkg
  223. {
  224. // Probably don't want to use force-downgrade..
  225. Options {"--force-overwrite";"--force-downgrade";}
  226. // Auto re-mounting of a readonly /usr
  227. Pre-Invoke {"mount -o remount,rw /usr";};
  228. Post-Invoke {"mount -o remount,ro /usr";};
  229. // Prevents daemons from getting cwd as something mountable (default)
  230. Run-Directory "/";
  231. // Build options for apt-get source --compile
  232. Build-Options "-b -uc";
  233. // Pre-configure all packages before they are installed using debconf.
  234. Pre-Install-Pkgs {"dpkg-preconfigure --apt --priority=low --frontend=dialog";};
  235. // Flush the contents of stdin before forking dpkg.
  236. FlushSTDIN "true";
  237. // Control the size of the command line passed to dpkg.
  238. MaxBytes 1024;
  239. MaxArgs 350;
  240. // controls if apt will apport on the first dpkg error or if it
  241. // tries to install as many packages as possible
  242. StopOnError "true";
  243. }
  244. /* Options you can set to see some debugging text They correspond to names
  245. of classes in the source code */
  246. Debug
  247. {
  248. pkgProblemResolver "false";
  249. pkgProblemResolver::ShowScores "false";
  250. pkgDepCache::AutoInstall "false"; // what packages apt install to satify dependencies
  251. pkgDepCache::Marker "false";
  252. pkgAcquire "false";
  253. pkgAcquire::Worker "false";
  254. pkgAcquire::Auth "false";
  255. pkgDPkgPM "false";
  256. pkgDPkgProgressReporting "false";
  257. pkgOrderList "false";
  258. pkgAutoRemove "false"; // show information about automatic removes
  259. BuildDeps "false";
  260. pkgInitialize "false"; // This one will dump the configuration space
  261. NoLocking "false";
  262. Acquire::Ftp "false"; // Show ftp command traffic
  263. Acquire::Http "false"; // Show http command traffic
  264. Acquire::Https "false"; // Show https debug
  265. Acquire::gpgv "false"; // Show the gpgv traffic
  266. aptcdrom "false"; // Show found package files
  267. IdentCdrom "false";
  268. }
  269. /* Whatever you do, do not use this configuration file!! Take out ONLY
  270. the portions you need! */
  271. This Is Not A Valid Config File