apt-cache.8.yo 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211
  1. mailto(apt@packages.debian.org)
  2. manpage(apt-cache)(8)(4 Dec 1998)(apt)()
  3. manpagename(apt-cache)(APT package handling utility -- cache manipulator)
  4. manpagesynopsis()
  5. apt-cache command [argument ...]
  6. manpagedescription()
  7. bf(apt-cache) performs a variety of operations on APT's package cache.
  8. bf(apt-cache) is seldom called directly; instead its operations are
  9. performed automatically by the other bf(apt) utilities.
  10. em(command) is one of:
  11. itemize(
  12. it() add file1 [file2] [...]
  13. it() gencaches
  14. it() showpkg package1 [package2] [...]
  15. it() stats
  16. it() dump
  17. it() dumpavail
  18. it() unmet
  19. it() check
  20. )
  21. Unless the -h, or --help option is given one of the above commands
  22. must be present.
  23. startdit()
  24. dit(bf(add))
  25. bf(add) adds the names package index files to the package cache.
  26. dit(bf(gencaches))
  27. bf(gencaches) performs the same opration as bf(apt-get check). It builds
  28. the source and package caches from thes sources in bf(/etc/apt/sources.list)
  29. and from bf(/var/lib/dpkg/status).
  30. dit(bf(showpkg))
  31. bf(showpkg) displays information about the packages listed on the
  32. command line. Remaining arguments are package names. The available versions
  33. and reverse dependencies of each package listed are listed, as well as
  34. forward dependencies for each version. Forward (normal) dependencies
  35. are those packages upon which the package in question depends; reverse
  36. dependencies are those packages that depend upon the package in
  37. question. Thus, forward dependencies must be satisfied for a package,
  38. but reverse dependencies need not be.
  39. For instance, bf(apt-cache showpkg libreadline2) would produce output similar
  40. to the following:
  41. verb(
  42. Package: libreadline2
  43. Versions:
  44. 2.1-12(/var/state/apt/lists/debian.midco.net_debian_dists_slink_main_binary-i386_Packages),
  45. Reverse Depends:
  46. libreadlineg2,libreadline2
  47. libreadline2-altdev,libreadline2
  48. Dependencies:
  49. 2.1-12 - libc5 (2 5.4.0-0) ncurses3.0 (0 (null)) ldso (2 1.9.0-1)
  50. Provides:
  51. 2.1-12 -
  52. Reverse Provides:
  53. )
  54. Thus it may be seen that libreadline2, version 2.1-8, depends on libc5,
  55. ncurses3.0, and ldso, which must be installed for libreadline2 to work. In
  56. turn, libreadlineg2 and libreadline2-altdev depend on libreadline2. If
  57. libreadline2 is installed, libc5, ncurses3.0, and ldso must also be
  58. installed; libreadlineg2 and libreadline2-altdev do not have to be
  59. installed. For the specific meaning of the remainder of the output it
  60. is best to consult the apt source code.
  61. dit(bf(stats))
  62. bf(stats) displays some statistics about bf(cache).
  63. No further arguments are expected. Statistics reported are:
  64. itemize(
  65. it() bf(Total package names) is the number of package names found in the cache.
  66. it() bf(Normal packages) is the number of regular, ordinary package names; these
  67. are packages that bear a one-to-one correspondence between their names and
  68. the names used by other packages for them in dependencies. The majority of
  69. packages fall into this category.
  70. it() bf(Pure virtual packages) is the number of packages that exist only as
  71. a virtual package name; that is, packages only "provide" the virtual
  72. package name, and no package actually uses the name. For instance,
  73. "mail-transport-agent" in the Debian GNU/Linux system is a pure virtual
  74. package; several packages provide "mail-transport-agent", but there is no
  75. package named "mail-transport-agent".
  76. it() bf(Single virtual packages) is the number of packages with only one
  77. package providing a particular virtual package. For instance, in the
  78. Debian GNU/Linux system, "X11-text-viewer" is a virtual package, but only
  79. one package, xless, provides "X11-text-viewer".
  80. it() bf(Mixed virtual packages) is the number of packages that either provide
  81. a particular virtual package or have the virtual package name as the
  82. package name. For instance, in the Debian GNU/Linux system, e2fsprogs is
  83. both an actual package, and provided by the e2compr package.
  84. it() bf(Missing) is the number of package names that were referenced in a
  85. dependency but were not provided by any package. Missing packages may be
  86. in evidence if a full distribution is not accesssed, or if a package
  87. (real or virtual) has been dropped from the distribution.
  88. it() bf(Total distinct) versions is the number of package versions found in
  89. the cache; this value is therefore at least equal to the number of total
  90. package names. If more than one distribution (both "stable" and "unstable",
  91. for instance), is being accessed, this value can be considerably larger
  92. than the number of total package names.
  93. it() bf(Total dependencies) is the number of dependency relationships claimed
  94. by all of the packages in the cache.
  95. )
  96. dit(bf(dump))
  97. bf(dump) shows a short listing of every package in the cache. It is primarily
  98. for debugging.
  99. dit(bf(dumpavail))
  100. bf(dumpavail) prints out an available list to stdout. This is suitable for use
  101. with df(dpkg) and is used by the bf(dselect) method.
  102. dit(bf(unmet))
  103. bf(unmet) displays a summary of all unmet dependencies in the package cache.
  104. dit(bf(check))
  105. bf(check) is a random function for testing certain aspects of the cache.
  106. Do not use it.
  107. enddit()
  108. manpageoptions()
  109. All command line options may be set using the configuration file, the
  110. descriptions indicate the configuration option to set. For boolean
  111. options you can override the config file by using something like bf(-f-),
  112. bf(--no-f), bf(-f=no) or several other variations.
  113. startdit()
  114. dit(bf(-h, --help))
  115. Show a short usage summary.
  116. dit(bf(-p --pkg-cache))
  117. Select the file to store the package cache. The package cache is the primary
  118. cache used by all operations.
  119. See bf(Dir::Cache::pkgcache).
  120. dit(bf(-s --src-cache))
  121. Select the file to store the source cache. The source is used only by
  122. bf(gencaches) and it stores a parsed version of the package information from
  123. remote sources. When building the package cache the source cache is used
  124. to advoid reparsing all of the package files.
  125. See bf(Dir::Cache::srcpkgcache).
  126. dit(bf(-q, --quiet))
  127. Quiet; produces output suitable for logging, omitting progress indicators.
  128. More qs will produce more quite up to a maximum of 2. You can also use
  129. bf(-q=#) to set the quiet level, overriding the configuration file.
  130. See bf(quiet).
  131. dit(bf(-i --important))
  132. Print only important deps; for use with unmet causes only em(Depends) and
  133. em(Pre-Depends) relations to be printed.
  134. See bf(APT::Cache::Important).
  135. dit(bf(-c, --config-file))
  136. Configuration File; Specify a configuration file to use. bf(apt-get) will
  137. read the default configuration file and then this configuration file. See
  138. bf(apt.conf(5)) for syntax information.
  139. dit(bf(-o, --option))
  140. Set a Configuration Option; This will set an arbitary configuration option.
  141. The syntax is
  142. verb(-o Foo::Bar=bar)
  143. enddit()
  144. manpagefiles()
  145. itemize(
  146. it() /etc/apt/sources.list
  147. locations to fetch packages from
  148. it() /var/state/apt/lists/
  149. storage area for state information for each package resource specified in
  150. it() /var/state/apt/lists/partial/
  151. storage area for state information in transit
  152. )
  153. manpageseealso()
  154. apt-get(8),
  155. sources.list(5),
  156. apt.conf(5)
  157. manpagediagnostics()
  158. apt-cache returns zero on normal operation, decimal 100 on error.
  159. manpagebugs()
  160. See http://bugs.debian.org/apt. If you wish to report a
  161. bug in bf(apt-cache), please see bf(/usr/doc/debian/bug-reporting.txt)
  162. or the bf(bug(1)) command.
  163. manpageauthor()
  164. apt-get was written by the APT team <apt@packages.debian.org>.