apt-cache.8.yo 8.2 KB

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