apt.conf 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138
  1. // $Id: apt.conf,v 1.26 1999/03/02 21:19:06 jgg Exp $
  2. /* This file is an index of all APT configuration directives. It should
  3. NOT actually be used as a real config file, though it is a completely
  4. valid file.
  5. In some instances involving filenames it is possible to set the default
  6. directory when the path is evaluated. This means you can use relative
  7. paths within the sub scope.
  8. The configuration directives are specified in a tree with {} designating
  9. a subscope relative to the tag before the {}. You can further specify
  10. a subscope using scope notation eg,
  11. APT::Architecture "i386";
  12. This is prefixed with the current scope. Scope notation must be used
  13. if an option is specified on the command line with -o.
  14. */
  15. // Options for APT in general
  16. APT {
  17. Architecture "i386";
  18. // Options for apt-get
  19. Get {
  20. Download-Only "false";
  21. Simulate "false";
  22. Assume-Yes "false";
  23. Force-Yes "false"; // I would never set this.
  24. Fix-Broken "false";
  25. Fix-Missing "false";
  26. Show-Upgraded "false";
  27. No-Upgrade "false";
  28. Print-URIs "false";
  29. };
  30. Cache {
  31. Important "false";
  32. };
  33. CDROM {
  34. Rename "false";
  35. NoMount "false";
  36. Fast "false";
  37. NoAct "false";
  38. };
  39. // Some general options
  40. Ingore-Hold "false";
  41. Immediate-Configure "true"; // DO NOT turn this off, see the man page
  42. };
  43. // Options for the downloading routines
  44. Acquire
  45. {
  46. Queue-Mode "host"; // host|access
  47. Retries "0";
  48. // HTTP method configuration
  49. http
  50. {
  51. Proxy "http://127.0.0.1:3128";
  52. Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
  53. Timeout "120";
  54. // Cache Control. Note these do not work with Squid 2.0.2
  55. No-Cache "false";
  56. Max-Age "86400"; // 1 Day age on index files
  57. No-Store "false"; // Prevent the cache from storing archives
  58. };
  59. cdrom
  60. {
  61. Mount "/cdrom";
  62. };
  63. };
  64. // Directory layout
  65. Dir
  66. {
  67. // Location of the state dir
  68. State "/var/state/apt/"
  69. {
  70. lists "lists/";
  71. xstatus "xstatus";
  72. userstatus "status.user";
  73. status "/var/lib/dpkg/status";
  74. cdroms "cdroms.list";
  75. };
  76. // Location of the cache dir
  77. Cache "/var/cache/apt/" {
  78. archives "archives/";
  79. srcpkgcache "srcpkgcache.bin";
  80. pkgcache "pkgcache.bin";
  81. };
  82. // Config files
  83. Etc "/etc/apt/" {
  84. sourcelist "sources.list";
  85. main "apt.conf";
  86. };
  87. // Locations of binaries
  88. Bin {
  89. methods "/usr/lib/apt/methods/";
  90. gzip "/bin/gzip";
  91. dpkg "/usr/bin/dpkg";
  92. apt-get "/usr/bin/apt-get";
  93. apt-cache "/usr/bin/apt-get";
  94. };
  95. };
  96. // Things that effect the APT dselect method
  97. DSelect {
  98. Clean "auto"; // always|auto|prompt|never
  99. Options "-f";
  100. UpdateOptions "";
  101. PromptAfterUpdate "no";
  102. }
  103. DPkg {
  104. Options {"--force-downgrade";}
  105. Pre-Invoke {"mount -o remount,rw /usr";};
  106. Post-Invoke {"mount -o remount,ro /usr";};
  107. Run-Directory "/";
  108. }
  109. /* Options you can set to see some debugging text They corrispond to names
  110. of classes in the source code */
  111. Debug {
  112. pkgProblemResolver "false";
  113. pkgAcquire "false";
  114. pkgAcquire::Worker "false";
  115. pkgDPkgPM "false";
  116. pkgInitialize "false"; // This one will dump the configuration space
  117. NoLocking "false";
  118. }