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.
 
 
 
 
 
 

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