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