apt-cache.8.yo 8.9 KB

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