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