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