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