apt.conf 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. // $Id: apt.conf,v 1.18 1998/12/06 22:51:14 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 involing 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. };
  29. Cache {
  30. Important "false";
  31. };
  32. CDROM {
  33. Rename "false";
  34. NoMount "false";
  35. Fast "false";
  36. NoAct "false";
  37. };
  38. // Some general options
  39. Ingore-Hold "false";
  40. };
  41. // Options for the downloading routines
  42. Acquire
  43. {
  44. Queue-Mode "host"; // host|access
  45. // HTTP method configuration
  46. http
  47. {
  48. Proxy "http://127.0.0.1:3128";
  49. Proxy::http.us.debian.org "DIRECT"; // Specific per-host setting
  50. // Cache Control. Note these do not work with Squid 2.0.2
  51. No-Cache "false";
  52. Max-Age "86400"; // 1 Day age on index files
  53. No-Store "false"; // Prevent the cache from storing archives
  54. };
  55. cdrom
  56. {
  57. Mount "/cdrom";
  58. };
  59. };
  60. // Directory layout
  61. Dir
  62. {
  63. // Location of the state dir
  64. State "/var/state/apt/"
  65. {
  66. lists "lists/";
  67. xstatus "xstatus";
  68. userstatus "status.user";
  69. status "/var/lib/dpkg/status";
  70. };
  71. // Location of the cache dir
  72. Cache "/var/cache/apt/" {
  73. archives "archives/";
  74. srcpkgcache "srcpkgcache.bin";
  75. pkgcache "pkgcache.bin";
  76. };
  77. // Config files
  78. Etc "/etc/apt/" {
  79. sourcelist "sources.list";
  80. main "apt.conf";
  81. };
  82. // Locations of binaries
  83. Bin {
  84. methods "/usr/lib/apt/methods/";
  85. gzip "/bin/gzip";
  86. dpkg "/usr/bin/dpkg";
  87. apt-get "/usr/bin/apt-get";
  88. apt-cache "/usr/bin/apt-get";
  89. };
  90. };
  91. // Things that effect the APT dselect method
  92. DSelect {
  93. Clean "auto"; // always|auto|prompt|never
  94. Options "-f";
  95. UpdateOptions "";
  96. PromptAfterUpdate "no";
  97. }
  98. /* Options you can set to see some debugging text They corrispond to names
  99. of classes in the source code */
  100. Debug {
  101. pkgProblemResolver "false";
  102. pkgAcquire "false";
  103. pkgAcquire::Worker "false";
  104. pkgDPkgPM "false";
  105. pkgInitialize "false"; // This one will dump the configuration space
  106. NoLocking "false";
  107. }