apt-cache.8.yo 10 KB

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