apt.conf 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137
  1. // $Id: apt.conf,v 1.24 1999/01/31 08:55:53 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. Retry "false";
  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. // Cache Control. Note these do not work with Squid 2.0.2
  54. No-Cache "false";
  55. Max-Age "86400"; // 1 Day age on index files
  56. No-Store "false"; // Prevent the cache from storing archives
  57. };
  58. cdrom
  59. {
  60. Mount "/cdrom";
  61. };
  62. };
  63. // Directory layout
  64. Dir
  65. {
  66. // Location of the state dir
  67. State "/var/state/apt/"
  68. {
  69. lists "lists/";
  70. xstatus "xstatus";
  71. userstatus "status.user";
  72. status "/var/lib/dpkg/status";
  73. cdroms "cdroms.list";
  74. };
  75. // Location of the cache dir
  76. Cache "/var/cache/apt/" {
  77. archives "archives/";
  78. srcpkgcache "srcpkgcache.bin";
  79. pkgcache "pkgcache.bin";
  80. };
  81. // Config files
  82. Etc "/etc/apt/" {
  83. sourcelist "sources.list";
  84. main "apt.conf";
  85. };
  86. // Locations of binaries
  87. Bin {
  88. methods "/usr/lib/apt/methods/";
  89. gzip "/bin/gzip";
  90. dpkg "/usr/bin/dpkg";
  91. apt-get "/usr/bin/apt-get";
  92. apt-cache "/usr/bin/apt-get";
  93. };
  94. };
  95. // Things that effect the APT dselect method
  96. DSelect {
  97. Clean "auto"; // always|auto|prompt|never
  98. Options "-f";
  99. UpdateOptions "";
  100. PromptAfterUpdate "no";
  101. }
  102. DPkg {
  103. Options {"--force-downgrade";}
  104. Pre-Invoke {"mount -o remount,rw /usr";};
  105. Post-Invoke {"mount -o remount,ro /usr";};
  106. Run-Direcotry "/";
  107. }
  108. /* Options you can set to see some debugging text They corrispond to names
  109. of classes in the source code */
  110. Debug {
  111. pkgProblemResolver "false";
  112. pkgAcquire "false";
  113. pkgAcquire::Worker "false";
  114. pkgDPkgPM "false";
  115. pkgInitialize "false"; // This one will dump the configuration space
  116. NoLocking "false";
  117. }