]> git.saurik.com Git - apt.git/blame - doc/apt-cache.8.yo
Added wrecked symlink recovery
[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
09f2e026
AL
157enddit()
158
159manpageoptions()
3d8fd174
AL
160All command line options may be set using the configuration file, the
161descriptions indicate the configuration option to set. For boolean
162options you can override the config file by using something like bf(-f-),
163bf(--no-f), bf(-f=no) or several other variations.
09f2e026
AL
164
165startdit()
166dit(bf(-h, --help))
167Show a short usage summary.
168
04aa15a8
AL
169dit(bf(-v, --version))
170Show the program verison.
171
09f2e026
AL
172dit(bf(-p --pkg-cache))
173Select the file to store the package cache. The package cache is the primary
174cache used by all operations.
3d8fd174 175See bf(Dir::Cache::pkgcache).
09f2e026
AL
176
177dit(bf(-s --src-cache))
178Select the file to store the source cache. The source is used only by
179bf(gencaches) and it stores a parsed version of the package information from
180remote sources. When building the package cache the source cache is used
181to advoid reparsing all of the package files.
3d8fd174 182See bf(Dir::Cache::srcpkgcache).
09f2e026
AL
183
184dit(bf(-q, --quiet))
185Quiet; produces output suitable for logging, omitting progress indicators.
186More qs will produce more quite up to a maximum of 2. You can also use
187bf(-q=#) to set the quiet level, overriding the configuration file.
3d8fd174 188See bf(quiet).
09f2e026
AL
189
190dit(bf(-i --important))
191Print only important deps; for use with unmet causes only em(Depends) and
192em(Pre-Depends) relations to be printed.
3d8fd174 193See bf(APT::Cache::Important).
09f2e026 194
7e2e2d5d
AL
195dit(bf(-f --full))
196Print full package records when searching. See bf(APT::Cache::ShowFull).
197
198dit(bf(--names-only))
199Only search on the package names, not the long description. See
200bf(APT::Cache::Names-Only).
201
09f2e026
AL
202dit(bf(-c, --config-file))
203Configuration File; Specify a configuration file to use. bf(apt-get) will
204read the default configuration file and then this configuration file. See
205bf(apt.conf(5)) for syntax information.
206
207dit(bf(-o, --option))
208Set a Configuration Option; This will set an arbitary configuration option.
209The syntax is
210verb(-o Foo::Bar=bar)
211enddit()
212
213manpagefiles()
214itemize(
215 it() /etc/apt/sources.list
216 locations to fetch packages from
217
218 it() /var/state/apt/lists/
219 storage area for state information for each package resource specified in
220
221 it() /var/state/apt/lists/partial/
222 storage area for state information in transit
223)
224
225manpageseealso()
3d8fd174
AL
226apt-get(8),
227sources.list(5),
228apt.conf(5)
09f2e026
AL
229
230manpagediagnostics()
231apt-cache returns zero on normal operation, decimal 100 on error.
232
233manpagebugs()
d59cbe7f 234See http://bugs.debian.org/apt. If you wish to report a
09f2e026
AL
235bug in bf(apt-cache), please see bf(/usr/doc/debian/bug-reporting.txt)
236or the bf(bug(1)) command.
237
238manpageauthor()
239apt-get was written by the APT team <apt@packages.debian.org>.