apt.conf 2.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. // $Id: apt.conf,v 1.19 1998/12/14 04:00:34 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. cdroms "cdroms.list";
  71. };
  72. // Location of the cache dir
  73. Cache "/var/cache/apt/" {
  74. archives "archives/";
  75. srcpkgcache "srcpkgcache.bin";
  76. pkgcache "pkgcache.bin";
  77. };
  78. // Config files
  79. Etc "/etc/apt/" {
  80. sourcelist "sources.list";
  81. main "apt.conf";
  82. };
  83. // Locations of binaries
  84. Bin {
  85. methods "/usr/lib/apt/methods/";
  86. gzip "/bin/gzip";
  87. dpkg "/usr/bin/dpkg";
  88. apt-get "/usr/bin/apt-get";
  89. apt-cache "/usr/bin/apt-get";
  90. };
  91. };
  92. // Things that effect the APT dselect method
  93. DSelect {
  94. Clean "auto"; // always|auto|prompt|never
  95. Options "-f";
  96. UpdateOptions "";
  97. PromptAfterUpdate "no";
  98. }
  99. /* Options you can set to see some debugging text They corrispond to names
  100. of classes in the source code */
  101. Debug {
  102. pkgProblemResolver "false";
  103. pkgAcquire "false";
  104. pkgAcquire::Worker "false";
  105. pkgDPkgPM "false";
  106. pkgInitialize "false"; // This one will dump the configuration space
  107. NoLocking "false";
  108. }