]> git.saurik.com Git - apt.git/blame - doc/apt-cache.8
New make changes
[apt.git] / doc / apt-cache.8
CommitLineData
578bfd0a
AL
1.\" This manpage is copyright (C) 1998 Branden Robinson <branden@debian.org>.\r
2.\" \r
3.\" This is free software; you may redistribute it and/or modify\r
4.\" it under the terms of the GNU General Public License as\r
5.\" published by the Free Software Foundation; either version 2,\r
6.\" or (at your option) any later version.\r
7.\"\r
8.\" This is distributed in the hope that it will be useful, but\r
9.\" WITHOUT ANY WARRANTY; without even the implied warranty of\r
10.\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\r
11.\" GNU General Public License for more details.\r
12.\"\r
13.\" You should have received a copy of the GNU General Public\r
14.\" License along with APT; if not, write to the Free Software\r
15.\" Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA \r
16.\" 02111-1307 USA\r
17.TH apt-cache 8 "16 June 1998" "Debian GNU/Linux"\r
18.SH NAME\r
19apt-cache \- APT package handling utility \(em cache manipulator\r
20.SH SYNOPSIS\r
21.B apt-cache\r
22.I command cache\r
23.RI [ argument \r
24.IR ... ]\r
25.SH DESCRIPTION\r
26.B apt-cache\r
27performs a variety of operations on APT's package cache.\r
28.I apt-cache\r
29is seldom called directly; instead it is usually invoked internally by\r
30.BR apt-get (8)\r
31or\r
32.BR apt (8).\r
33.PP\r
34.I command\r
35is one of\r
36.RS\r
37.PD 0\r
38.B add\r
39.PP\r
40.B dump\r
41.PP\r
42.B dumpavail\r
43.PP\r
44.B showpkg\r
45.PP\r
46.B stats\r
47.RE\r
48.PD 1\r
49.PP\r
50.I cache\r
51must be a package cache file (for instance,\r
52.IR /var/cache/apt/pkgcache.bin ).\r
53Some\r
54.IR command s\r
55require additional arguments.\r
56.SS add\r
57.B add\r
58adds a new set of package records to\r
59.IR cache .\r
60Remaining arguments are of the form\r
61.IR file : dist : ver ,\r
62where\r
63.I file\r
64is the full path to file in question.\r
65.I dist\r
66and\r
67.I ver\r
68can be any string and are not yet implemented.\r
69.SS dump\r
70.B dump\r
71displays information about all the packages in the cache. See\r
72.B showpkg\r
73below for an explanation of what data is output for each package.\r
74.SS dumpavail\r
75.B dumpavail\r
76generates an\r
77.I available\r
78file suitable for use with\r
79.BR dpkg (8)\r
80based on the information in the cache.\r
81.SS showpkg\r
82.B showpkg\r
83displays information about the packages listed on the command line. \r
84Remaining arguments are package names. The available versions and \r
85reverse dependencies of each package listed are listed, as well as \r
86forward dependencies for each version. Forward (normal) dependencies \r
87are those packages upon which the package in question depends; reverse \r
88dependencies are those packages that depend upon the package in \r
89question. Thus, forward dependencies must be satisfied for a package, \r
90but reverse dependencies need not be. \r
91For instance,\r
92.B apt-cache showpkg\r
93.I cache\r
94.B libreadline2\r
95would produce output similar to the following:\r
96.PP\r
97.RS\r
98.PD 0\r
99Package: libreadline2\r
100.PP\r
101Versions: 2.1-8,2.1-7,\r
102.PP\r
103Reverse Depends:\r
104.RS\r
105.PP\r
106libreadlineg2,libreadline2\r
107.PP\r
108libreadlineg2,libreadline2\r
109.PP\r
110libreadline2-altdev,libreadline2\r
111.RE\r
112.PP\r
113Dependencies:\r
114.PP\r
1152.1-8 - libc5 ncurses3.0 ldso\r
116.PP\r
1172.1-7 - ldso libc5 ncurses3.0\r
118.RE\r
119.PD 1\r
120.PP\r
121Thus it may be seen that libreadline2, version 2.1-8, depends on libc5,\r
122ncurses3.0, and ldso, which must be installed for libreadline2 to work. In\r
123turn, libreadlineg2 and libreadline2-altdev depend on libreadline2. If\r
124libreadline2 is installed, libc5, ncurses3.0, and ldso must also be\r
125installed; libreadlineg2 and libreadline2-altdev do not have to be\r
126installed.\r
127.SS stats\r
128.B stats\r
129displays some statistics about\r
130.IR cache .\r
131No further arguments are expected. Statistics reported are:\r
132.RS\r
133.TP\r
134.I Total package names\r
135is the number of package names found in the cache.\r
136.TP\r
137.I Normal packages\r
138is the number of regular, ordinary package names; these\r
139are packages that bear a one-to-one correspondence between their names and\r
140the names used by other packages for them in dependencies. The majority of\r
141packages fall into this category.\r
142.TP\r
143.I Pure virtual packages\r
144is the number of packages that exist only as a virtual package name; that\r
145is, packages only "provide" the virtual package name, and no package\r
146actually uses the name. For instance, "mail-transport-agent" in the Debian\r
147GNU/Linux system is a pure virtual package; several packages provide\r
148"mail-transport-agent", but there is no package named "mail-transport-agent".\r
149.TP\r
150.I Single virtual packages\r
151is the number of packages with only one package providing a particular \r
152virtual package. For instance, in the Debian GNU/Linux system, \r
153"X11-text-viewer" is a virtual package, but only one package, xless, \r
154provides "X11-text-viewer".\r
155.TP\r
156.I Mixed virtual packages\r
157is the number of packages that either provide a particular virtual package\r
158or have the virtual package name as the package name. For instance, in the\r
159Debian GNU/Linux system, e2fsprogs is both an actual package, and\r
160provided by the e2compr package.\r
161.TP\r
162.I Missing\r
163is the number of package names that were referenced in a dependency but\r
164were not provided by any package. Missing packages may be in evidence\r
165if a full distribution is not accesssed, or if a package (real or virtual)\r
166has been dropped from the distribution.\r
167.TP\r
168.I Total distinct versions\r
169is the number of package versions found in the cache; this value is\r
170therefore at least equal to the number of total package names. If more than\r
171one distribution (both "stable" and "unstable", for instance), is being\r
172accessed, this value can be considerably larger than the number of total\r
173package names.\r
174.TP\r
175.I Total dependencies\r
176is the number of dependency relationships claimed by all of the packages in\r
177the cache.\r
178.RE\r
179.SH OPTIONS\r
180None.\r
181.SH FILES\r
182None.\r
183.SH SEE ALSO\r
184.BR apt (8),\r
185.BR apt-get (8),\r
186.I /usr/doc/apt/cache*\r
187.SH DIAGNOSTICS\r
188apt-cache returns zero on normal operation, decimal 100 on error.\r
189.SH BUGS\r
190See <http://www.debian.org/Bugs/db/pa/lapt.html>. If you wish to report a\r
191bug in\r
192.BR apt-cache ,\r
193please see\r
194.I /usr/doc/debian/bug-reporting.txt\r
195or the\r
196.BR bug (1)\r
197command.\r
198.SH AUTHOR\r
199apt-cache was written by the APT team <apt@packages.debian.org>.\r