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.
 
 
 
 
 
 

447 lines
12 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. 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. // Some general options
  83. Ignore-Hold "false";
  84. Clean-Installed "true";
  85. Immediate-Configure "true"; // DO NOT turn this off, see the man page
  86. Force-LoopBreak "false"; // DO NOT turn this on, see the man page
  87. Cache-Start "20971520";
  88. Cache-Grow "1048576";
  89. Cache-Limit "0";
  90. Default-Release "";
  91. // consider Recommends, Suggests as important dependencies that should
  92. // be installed by default
  93. Install-Recommends "true";
  94. Install-Suggests "false";
  95. // consider dependencies of packages in this section manual
  96. Never-MarkAuto-Sections {"metapackages"; "universe/metapackages"; };
  97. // Write progress messages on this fd (for stuff like base-config)
  98. Status-Fd "-1";
  99. // Keep the list of FDs open (normally apt closes all fds when it
  100. // does a ExecFork)
  101. Keep-Fds {};
  102. // control parameters for cron jobs by /etc/cron.daily/apt
  103. Periodic
  104. {
  105. BackupArchiveInterval "0";
  106. // - Backup after n-days if archive contents changed.(0=disable)
  107. BackupLevel "3";
  108. // - Backup level.(0=disable), 1 is invalid.
  109. // APT::Archives::MaxAge "0"; (old, deprecated)
  110. MaxAge "0"; // (new)
  111. // - Set maximum allowed age of a cache package file. If a cache
  112. // package file is older it is deleted (0=disable)
  113. // APT::Archives::MinAge "2"; (old, deprecated)
  114. MinAge "2"; // (new)
  115. // - Set minimum age of a package file. If a file is younger it
  116. // will not be deleted (0=disable). Usefull to prevent races
  117. // and to keep backups of the packages for emergency.
  118. // APT::Archives::MaxSize "0"; (old, deprecated)
  119. MaxSize "0"; // (new)
  120. // - Set maximum size of the cache in MB (0=disable). If the cache
  121. // is bigger, cached package files are deleted until the size
  122. // requirement is met (the biggest packages will be deleted
  123. // first).
  124. Update-Package-Lists "0";
  125. // - Do "apt-get update" automatically every n-days (0=disable)
  126. //
  127. Download-Upgradeable-Packages "0";
  128. // - Do "apt-get upgrade --download-only" every n-days (0=disable)
  129. //
  130. Unattended-Upgrade "0";
  131. // - Run the "unattended-upgrade" security upgrade script
  132. // every n-days (0=disabled)
  133. // Requires the package "unattended-upgrades" and will write
  134. // a log in /var/log/unattended-upgrades
  135. //
  136. AutocleanInterval "0";
  137. // - Do "apt-get autoclean" every n-days (0=disable)
  138. Verbose "0";
  139. // - Send report mail to root
  140. // 0: no report (or null string)
  141. // 1: progress report (actually any string)
  142. // 2: + command outputs (remove -qq, remove 2>/dev/null, add -d)
  143. // 3: + trace on
  144. };
  145. };
  146. // Options for the downloading routines
  147. Acquire
  148. {
  149. Queue-Mode "host"; // host|access
  150. Retries "0";
  151. Source-Symlinks "true";
  152. ForceHash "sha256"; // hashmethod used for expected hash: sha256, sha1 or md5sum
  153. PDiffs "true"; // try to get the IndexFile diffs
  154. PDiffs::FileLimit "4"; // don't use diffs if we would need more than 4 diffs
  155. PDiffs::SizeLimit "50"; // don't use diffs if size of all patches excess
  156. // 50% of the size of the original file
  157. Check-Valid-Until "true";
  158. Max-ValidTime "864000"; // 10 days
  159. Max-ValidTime::Debian-Security "604800"; // 7 days, label specific configuration
  160. // HTTP method configuration
  161. http
  162. {
  163. Proxy "http://127.0.0.1:3128";
  164. Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
  165. Timeout "120";
  166. Pipeline-Depth "5";
  167. AllowRedirect "true";
  168. // Cache Control. Note these do not work with Squid 2.0.2
  169. No-Cache "false";
  170. Max-Age "86400"; // 1 Day age on index files
  171. No-Store "false"; // Prevent the cache from storing archives
  172. Dl-Limit "7"; // 7Kb/sec maximum download rate
  173. User-Agent "Debian APT-HTTP/1.3";
  174. };
  175. // HTTPS method configuration: uses the http
  176. // - proxy config
  177. // - cache-control values
  178. // - Dl-Limit, Timout, ... values
  179. // if not set explicit for https
  180. //
  181. // see /usr/share/doc/apt/examples/apt-https-method-example.conf.gz
  182. // for more examples
  183. https
  184. {
  185. Verify-Peer "false";
  186. SslCert "/etc/apt/some.pem";
  187. CaPath "/etc/ssl/certs";
  188. Verify-Host" "true";
  189. AllowRedirect "true";
  190. Timeout "120";
  191. AllowRedirect "true";
  192. // Cache Control. Note these do not work with Squid 2.0.2
  193. No-Cache "false";
  194. Max-Age "86400"; // 1 Day age on index files
  195. No-Store "false"; // Prevent the cache from storing archives
  196. Dl-Limit "7"; // 7Kb/sec maximum download rate
  197. User-Agent "Debian APT-CURL/1.0";
  198. };
  199. ftp
  200. {
  201. Proxy "ftp://127.0.0.1/";
  202. Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
  203. /* Required script to perform proxy login. This example should work
  204. for tisfwtk */
  205. ProxyLogin
  206. {
  207. "USER $(PROXY_USER)";
  208. "PASS $(PROXY_PASS)";
  209. "USER $(SITE_USER)@$(SITE):$(SITE_PORT)";
  210. "PASS $(SITE_PASS)";
  211. };
  212. Timeout "120";
  213. /* Passive mode control, proxy, non-proxy and per-host. Pasv mode
  214. is preferred if possible */
  215. Passive "true";
  216. Proxy::Passive "true";
  217. Passive::http.us.debian.org "true"; // Specific per-host setting
  218. };
  219. cdrom
  220. {
  221. // do auto detection of the cdrom mountpoint
  222. AutoDetect "true";
  223. // cdrom mountpoint (needs to be defined in fstab if AutoDetect is not used)
  224. mount "/cdrom";
  225. // You need the trailing slash!
  226. "/cdrom/"
  227. {
  228. Mount "sleep 1000";
  229. UMount "sleep 500";
  230. }
  231. };
  232. gpgv
  233. {
  234. Options {"--ignore-time-conflict";} // not very useful on a normal system
  235. };
  236. CompressionTypes
  237. {
  238. bz2 "bzip2";
  239. lzma "lzma";
  240. gz "gzip";
  241. Order { "gz"; "lzma"; "bz2"; };
  242. };
  243. Languages
  244. {
  245. "environment";
  246. "de";
  247. "en";
  248. "none";
  249. "fr";
  250. };
  251. };
  252. // Directory layout
  253. Dir "/"
  254. {
  255. // Location of the state dir
  256. State "var/lib/apt/"
  257. {
  258. Lists "lists/";
  259. status "/var/lib/dpkg/status";
  260. extended_states "extended_states";
  261. cdroms "cdroms.list";
  262. };
  263. // Location of the cache dir
  264. Cache "var/cache/apt/" {
  265. Archives "archives/";
  266. // backup directory created by /etc/cron.daily/apt
  267. Backup "backup/";
  268. srcpkgcache "srcpkgcache.bin";
  269. pkgcache "pkgcache.bin";
  270. };
  271. // Config files
  272. Etc "etc/apt/" {
  273. Main "apt.conf";
  274. Netrc "auth.conf";
  275. Parts "apt.conf.d/";
  276. Preferences "preferences";
  277. PreferencesParts "preferences.d";
  278. SourceList "sources.list";
  279. SourceParts "sources.list.d";
  280. VendorList "vendors.list";
  281. VendorParts "vendors.list.d";
  282. Trusted "trusted.gpg";
  283. TrustedParts "trusted.gpg.d";
  284. };
  285. // Locations of binaries
  286. Bin {
  287. methods "/usr/lib/apt/methods/";
  288. gzip "/bin/gzip";
  289. gpg "/usr/bin/gpgv";
  290. dpkg "/usr/bin/dpkg";
  291. dpkg-source "/usr/bin/dpkg-source";
  292. dpkg-buildpackage "/usr/bin/dpkg-buildpackage";
  293. apt-get "/usr/bin/apt-get";
  294. apt-cache "/usr/bin/apt-cache";
  295. };
  296. // Location of the logfile
  297. Log "var/log/apt" {
  298. Terminal "term.log";
  299. History "history.log";
  300. };
  301. // Media
  302. Media
  303. {
  304. // Media AutoDetect mount path
  305. MountPath "/media/apt";
  306. };
  307. // Media
  308. Media
  309. {
  310. // Media AutoDetect mount path
  311. MountPath "/media/apt";
  312. };
  313. };
  314. // Things that effect the APT dselect method
  315. DSelect
  316. {
  317. Clean "auto"; // always|auto|prompt|never
  318. Options "-f";
  319. UpdateOptions "";
  320. PromptAfterUpdate "no";
  321. CheckDir "no";
  322. }
  323. DPkg
  324. {
  325. // let apt aggressivly use dpkg triggers
  326. NoTriggers "true";
  327. NoConfigure "true";
  328. ConfigurePending "true";
  329. // Probably don't want to use force-downgrade..
  330. Options {"--force-overwrite";"--force-downgrade";}
  331. // Auto re-mounting of a readonly /usr
  332. Pre-Invoke {"mount -o remount,rw /usr";};
  333. Post-Invoke {"mount -o remount,ro /usr";};
  334. Chroot-Directory "/";
  335. // Prevents daemons from getting cwd as something mountable (default)
  336. Run-Directory "/";
  337. // Build options for apt-get source --compile
  338. Build-Options "-b -uc";
  339. // Pre-configure all packages before they are installed using debconf.
  340. Pre-Install-Pkgs {"dpkg-preconfigure --apt --priority=low --frontend=dialog";};
  341. // Flush the contents of stdin before forking dpkg.
  342. FlushSTDIN "true";
  343. // Control the size of the command line passed to dpkg.
  344. MaxBytes 1024;
  345. MaxArgs 350;
  346. // controls if apt will apport on the first dpkg error or if it
  347. // tries to install as many packages as possible
  348. StopOnError "true";
  349. }
  350. /* Options you can set to see some debugging text They correspond to names
  351. of classes in the source code */
  352. Debug
  353. {
  354. pkgProblemResolver "false";
  355. pkgProblemResolver::ShowScores "false";
  356. pkgDepCache::AutoInstall "false"; // what packages apt install to satify dependencies
  357. pkgDepCache::Marker "false";
  358. pkgCacheGen "false";
  359. pkgAcquire "false";
  360. pkgAcquire::Worker "false";
  361. pkgAcquire::Auth "false";
  362. pkgDPkgPM "false";
  363. pkgDPkgProgressReporting "false";
  364. pkgOrderList "false";
  365. pkgPackageManager "false"; // OrderList/Configure debugging
  366. pkgAutoRemove "false"; // show information about automatic removes
  367. BuildDeps "false";
  368. pkgInitialize "false"; // This one will dump the configuration space
  369. NoLocking "false";
  370. Acquire::Ftp "false"; // Show ftp command traffic
  371. Acquire::Http "false"; // Show http command traffic
  372. Acquire::Https "false"; // Show https debug
  373. Acquire::gpgv "false"; // Show the gpgv traffic
  374. aptcdrom "false"; // Show found package files
  375. IdentCdrom "false";
  376. acquire::netrc "false"; // netrc parser
  377. }
  378. pkgCacheGen::Essential "native"; // other modes: all, none, installed
  379. /* Whatever you do, do not use this configuration file!! Take out ONLY
  380. the portions you need! */
  381. This Is Not A Valid Config File