apt-cache.8.yo 9.4 KB

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