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