1 <!-- -*- mode: sgml; mode: fold -*- -->
2 <!-- translation of version 1.10 -->
3 <!-- Bug#175611 is fixed in translation -->
4 <!doctype refentry PUBLIC "-//OASIS//DTD DocBook V3.1//EN" [
6 <!ENTITY % aptent SYSTEM "apt.ent.ja">
15 <refentrytitle>apt-cache</>
19 <!-- Man page title -->
22 <!-- <refpurpose>APT package handling utility - - cache manipulator</> -->
23 <refpurpose>APT ¥Ñ¥Ã¥±¡¼¥¸Áàºî¥æ¡¼¥Æ¥£¥ê¥Æ¥£ -- ¥¥ã¥Ã¥·¥åÁàºî</>
30 <arg><option>-hvsn</></arg>
31 <arg><option>-o=<replaceable/config string/</></arg>
32 <arg><option>-c=<replaceable/file/</></arg>
34 <arg>add <arg choice="plain" rep="repeat"><replaceable>file</replaceable></arg></arg>
36 <arg>showpkg <arg choice="plain" rep="repeat"><replaceable>pkg</replaceable></arg></arg>
37 <arg>showsrc <arg choice="plain" rep="repeat"><replaceable>pkg</replaceable></arg></arg>
42 <arg>search <arg choice="plain"><replaceable>regex</replaceable></arg></arg>
43 <arg>show <arg choice="plain" rep="repeat"><replaceable>pkg</replaceable></arg></arg>
46 <arg>showpkg <arg choice="plain" rep="repeat"><replaceable>pkg</replaceable></arg></arg> -->
47 <arg>depends <arg choice="plain" rep="repeat"><replaceable>pkg</replaceable></arg></arg>
48 <arg>pkgnames <arg choice="plain"><replaceable>prefix</replaceable></arg></arg>
49 <arg>dotty <arg choice="plain" rep="repeat"><replaceable>pkg</replaceable></arg></arg>
50 <arg>policy <arg choice="plain" rep="repeat"><replaceable>pkgs</replaceable></arg></arg>
55 <!-- <RefSect1><Title>Description</>-->
56 <RefSect1><Title>ÀâÌÀ</>
59 <command/apt-cache/ performs a variety of operations on APT's package
60 cache. <command/apt-cache/ does not manipulate the state of the system
61 but does provide operations to search and generate interesting output
62 from the package metadata.
64 <command/apt-cache/ ¤Ï APT ¤Î¥Ñ¥Ã¥±¡¼¥¸¥¥ã¥Ã¥·¥å¤ËÂФ·¤Æ¤¤¤í¤¤¤í¤ÊÁàºî¤ò¹Ô¤¤¤Þ¤¹¡£
65 <command/apt-cache/ ¤Ï¡¢¥·¥¹¥Æ¥à¾õÂÖ¤ÎÁàºî¤Ï¹Ô¤¤¤Þ¤»¤ó¤¬¡¢
66 ¥Ñ¥Ã¥±¡¼¥¸¤Î¥á¥¿¥Ç¡¼¥¿¤è¤ê¸¡º÷¤·¤¿¤ê¡¢¶½Ì£¿¼¤¤½ÐÎϤòÀ¸À®¤¹¤ë¤È¤¤¤Ã¤¿Áàºî¤ò
70 Unless the <option/-h/, or <option/-/-help/ option is given one of the
71 commands below must be present.
73 <option/-h/ ¤ä <option/--help/ ¤ò½ü¤¡¢°Ê²¼¤Ëµó¤²¤ë¥³¥Þ¥ó¥É¤¬É¬ÍפǤ¹¡£
75 <VarListEntry><Term>add</Term>
78 <literal/add/ adds the named package index files to the package cache.
79 This is for debugging only.
81 <literal/add/ ¤Ï¥Ñ¥Ã¥±¡¼¥¸¥¥ã¥Ã¥·¥å¤Ë¡¢»ØÄꤷ¤¿¥Ñ¥Ã¥±¡¼¥¸¥¤¥ó¥Ç¥Ã¥¯¥¹
82 ¥Õ¥¡¥¤¥ë¤òÄɲä·¤Þ¤¹¡£¥Ç¥Ð¥Ã¥°ÀìÍѤǤ¹¡£
85 <VarListEntry><Term>gencaches</Term>
88 <literal/gencaches/ performs the same opration as
89 <command/apt-get check/. It builds the source and package caches from
90 the sources in &sources-list; and from <filename>/var/lib/dpkg/status</>.
92 <literal/gencaches/ ¤Ï <command/apt-get check/ ¤ÈƱ¤¸Æ°ºî¤òÄ󶡤·¤Þ¤¹¡£
93 ¤³¤ì¤Ï &sources-list; Æâ¤Î¼èÆÀ¸µ¤È <filename>/var/lib/dpkg/status</>
94 ¤«¤é¡¢¥½¡¼¥¹¤È¥Ñ¥Ã¥±¡¼¥¸¤Î¥¥ã¥Ã¥·¥å¤ò¹½ÃÛ¤·¤Þ¤¹¡£
97 <VarListEntry><Term>showpkg</Term>
100 <literal/showpkg/ displays information about the packages listed on the
101 command line. Remaining arguments are package names. The available
102 versions and reverse dependencies of each package listed are listed, as
103 well as forward dependencies for each version. Forward (normal)
104 dependencies are those packages upon which the package in question
105 depends; reverse dependencies are those packages that depend upon the
106 package in question. Thus, forward dependencies must be satisfied for a
107 package, but reverse dependencies need not be.
108 For instance, <command>apt-cache showpkg libreadline2</> would produce
109 output similar to the following:
111 <literal/showpkg/ ¤Ï¡¢¥³¥Þ¥ó¥É¥é¥¤¥ó¾å¤ËÎóµó¤·¤¿¥Ñ¥Ã¥±¡¼¥¸¤Î¾ðÊó¤ò
112 ɽ¼¨¤·¤Þ¤¹¡£»Ä¤ê¤Î°ú¿ô¤Ï¥Ñ¥Ã¥±¡¼¥¸Ì¾¤Ç¤¹¡£
113 Îóµó¤·¤¿¥Ñ¥Ã¥±¡¼¥¸¤Ë¤Ä¤¤¤Æ¡¢³Æ¥Ð¡¼¥¸¥ç¥ó¤Î°Í¸´Ø·¸¤òɽ¼¨¤¹¤ë¤è¤¦¤Ë ¡¢
114 ͸ú¤Ê¥Ð¡¼¥¸¥ç¥ó¤ÈÈï°Í¸´Ø·¸¤òÎóµó¤·¤Þ¤¹¡£
115 (Àµ)°Í¸´Ø·¸¤È¤Ï¡¢ÂоݤΥѥ屡¼¥¸¤¬°Í¸¤·¤Æ¤¤¤ë¥Ñ¥Ã¥±¡¼¥¸¤ò¤µ¤·¤Þ¤¹¡£
116 ¤Þ¤¿¡¢Èï°Í¸´Ø·¸¤È¤Ï¡¢ÂоݤΥѥ屡¼¥¸¤Ë°Í¸¤·¤Æ¤¤¤ë¥Ñ¥Ã¥±¡¼¥¸¤ò¤µ¤·¤Þ¤¹¡£
117 ½¾¤Ã¤Æ¡¢¥Ñ¥Ã¥±¡¼¥¸¤Î°Í¸´Ø·¸¤ÏËþ¤¿¤µ¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¤¬¡¢
118 Èï°Í¸´Ø·¸¤Ï¤½¤ÎɬÍפϤ¢¤ê¤Þ¤»¤ó¡£
119 ¼ÂÎã¤È¤·¤Æ¡¢°Ê²¼¤Ë <command>apt-cache showpkg libreadline2</> ¤Î
122 <informalexample><programlisting>
123 Package: libreadline2
124 Versions: 2.1-12(/var/state/apt/lists/foo_Packages),
126 libreadlineg2,libreadline2
127 libreadline2-altdev,libreadline2
129 2.1-12 - libc5 (2 5.4.0-0) ncurses3.0 (0 (null))
133 </programlisting></informalexample>
136 <!-- Thus it may be seen that libreadline2, version 2.1-12, depends on libc5 and
137 ncurses3.0 which must be installed for libreadline2 to work.
138 In turn, libreadlineg2 and libreadline2-altdev depend on libreadline2. If
139 libreadline2 is installed, libc5, ncurses3.0, and ldso must also be
140 installed; libreadlineg2 and libreadline2-altdev do not have to be
141 installed. For the specific meaning of the remainder of the output it
142 is best to consult the apt source code.
144 ¤Ä¤Þ¤ê¡¢libreadline2 ¤Î version 2.1-12 ¤Ï libc5 ¤È ncurses3.0 ¤Ë°Í¸¤·¤Æ
145 ¤¤¤Æ¡¢libreadline2 ¤¬Æ°ºî¤¹¤ë¤Ë¤Ï¤³¤ì¤é¤ò¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ëɬÍפ¬¤¢¤ë¤È
147 °ìÊý¡¢libreadlineg2 ¤È libreadline2-altdev ¤Ï libreadline2 ¤Ë°Í¸¤·¤Æ¤¤¤Þ¤¹¡£
148 libreadline2 ¤ò¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ë¤¿¤á¤Ë¤Ï¡¢libc5, ncurses3.0, ldso ¤ò
149 ¤¹¤Ù¤Æ¥¤¥ó¥¹¥È¡¼¥ë¤·¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¤¬¡¢libreadlineg2 ¤È
150 libreadline2-altdev ¤Ï¥¤¥ó¥¹¥È¡¼¥ë¤¹¤ëɬÍפϤ¢¤ê¤Þ¤»¤ó¡£
151 ½ÐÎϤλĤê¤ÎÉôʬ¤Î°ÕÌ£¤Ë¤Ä¤¤¤Æ¤Ï¡¢apt ¤Î¥½¡¼¥¹¥³¡¼¥É¤òÄ´¤Ù¤ë¤Î¤¬ºÇÎɤǤ·¤ç¤¦¡£
154 <VarListEntry><Term>stats</Term>
157 <literal/stats/ displays some statistics about the cache.
158 No further arguments are expected. Statistics reported are:
160 <literal/stats/ ¤Ï¥¥ã¥Ã¥·¥å¤Ë¤Ä¤¤¤Æ¤ÎÅý·×¾ðÊó¤òɽ¼¨¤·¤Þ¤¹¡£
161 ¤½¤ì°Ê¾å¡¢°ú¿ô¤ÏɬÍפ¢¤ê¤Þ¤»¤ó¡£°Ê²¼¤ÎÅý·×¾ðÊó¤òɽ¼¨¤·¤Þ¤¹¡£
164 °Ê²¼ stats ¤Î¥ê¥Æ¥é¥ë¤Ë¤Ä¤¤¤Æ¤Ï¡¢É½¼¨¤µ¤ì¤ë¹àÌÜ̾ (¤½¤ÎÌõʸ) ¤È¤¤¤¦·Á¼°¤Ç
165 µ½Ò¤·¤Þ¤¹¡£(ɽ¼¨¤µ¤ì¤ë¹àÌܤÈÌõ¤¬¤«¤±Î¥¤ì¤Ê¤¤¤è¤¦¤Ë)
166 ºÇ½ªÅª¤Ë¥á¥Ã¥»¡¼¥¸¥«¥¿¥í¥°ËÝÌõ¸å¤Ë½¤Àµ¤µ¤ì¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡£(ÁÒß·)
170 <literal/Total package names/ is the number of package names found
173 <literal/Total package names (Áí¥Ñ¥Ã¥±¡¼¥¸·×)/ ¤Ï¡¢
174 ¥¥ã¥Ã¥·¥å¤Ë¸ºß¤¹¤ë¥Ñ¥Ã¥±¡¼¥¸¿ô¤òɽ¤·¤Þ¤¹¡£
179 <literal/Normal packages/ is the number of regular, ordinary package
180 names; these are packages that bear a one-to-one correspondence between
181 their names and the names used by other packages for them in
182 dependencies. The majority of packages fall into this category.
184 <literal/Normal packages (Ä̾ï¥Ñ¥Ã¥±¡¼¥¸)/ ¤Ï¡¢
185 ¸ø¼°¤ÎÉáÄ̤Υѥ屡¼¥¸¿ô¤òɽ¤·¤Þ¤¹¡£
186 ¤³¤ì¤Ï¡¢Â¾¤Î¥Ñ¥Ã¥±¡¼¥¸¤Î°Í¸´Ø·¸¤Ç»ÈÍѤµ¤ì¤¿Ì¾¾Î¤Ç¡¢¤½¤ì¤¬°ìÂаì¤ËÂбþ
188 Âç¿¿ô¤Î¥Ñ¥Ã¥±¡¼¥¸¤Ï¤³¤Î¥«¥Æ¥´¥ê¤ËÆþ¤ê¤Þ¤¹¡£
193 <literal/Pure virtual packages/ is the number of packages that exist
194 only as a virtual package name; that is, packages only "provide" the
195 virtual package name, and no package actually uses the name. For
196 instance, "mail-transport-agent" in the Debian GNU/Linux system is a
197 pure virtual package; several packages provide "mail-transport-agent",
198 but there is no package named "mail-transport-agent".
200 <literal/Pure virtual packages (½ã²¾Áۥѥ屡¼¥¸)/ ¤Ï¡¢
201 ²¾Áۥѥ屡¼¥¸Ì¾¤È¤·¤Æ¤Î¤ß¸ºß¤¹¤ë
202 ¥Ñ¥Ã¥±¡¼¥¸ (²¾Áۥѥ屡¼¥¸Ì¾¤Î¤ß¤ò¡ÖÄ󶡡פ·¡¢¼ÂºÝ¤Ë¤Ï¤¤¤«¤Ê¤ë
203 ¥Ñ¥Ã¥±¡¼¥¸¤â¤½¤Î̾¾Î¤ò»ý¤¿¤Ê¤¤) ¤Î¿ô¤òɽ¤·¤Þ¤¹¡£
204 Î㤨¤Ð¡¢Debian GNU/Linux ¥·¥¹¥Æ¥à¤Ç¤Ï "mail-transport-agent" ¤Ï
205 ½ã²¾Áۥѥ屡¼¥¸¤Ç¤¹¡£"mail-transport-agent" ¤òÄ󶡤¹¤ë¥Ñ¥Ã¥±¡¼¥¸¤Ï
206 ¤¤¤¯¤Ä¤â¤¢¤ê¤Þ¤¹¤¬¡¢"mail-transport-agent" ¤È¤¤¤¦Ì¾¾Î¤Î¥Ñ¥Ã¥±¡¼¥¸¤Ï
212 <literal/Single virtual packages/ is the number of packages with only
213 one package providing a particular virtual package. For example, in the
214 Debian GNU/Linux system, "X11-text-viewer" is a virtual package, but
215 only one package, xless, provides "X11-text-viewer".
217 <literal/Single virtual packages (ñ²¾Áۥѥ屡¼¥¸)/ ¤Ï¡¢
218 ÆÃÄê¤Î²¾Áۥѥ屡¼¥¸Ì¾¤òÄ󶡤¹¤ë¥Ñ¥Ã¥±¡¼¥¸¤¬¡¢
219 ¤¿¤À°ì¤Ä¤Î¾ì¹ç¤Î¿ô¤òɽ¤·¤Þ¤¹¡£
220 Î㤨¤Ð¡¢Debian GNU/Linux ¥·¥¹¥Æ¥à¤Ç¤Ï¡¢"X11-text-viewer" ¤Ï
221 ²¾Áۥѥ屡¼¥¸¤Ç¤¹¤¬¡¢"X11-text-viewer" ¤òÄ󶡤¹¤ë¥Ñ¥Ã¥±¡¼¥¸¤Ï¡¢
222 xless ¥Ñ¥Ã¥±¡¼¥¸¤Î¤ß¤È¤¤¤¦¤³¤È¤Ç¤¹¡£
227 <literal/Mixed virtual packages/ is the number of packages that either
228 provide a particular virtual package or have the virtual package name
229 as the package name. For instance, in the Debian GNU/Linux system,
230 debconf is both an actual package, and provided by the debconf-tiny
233 <literal/Mixed virtual packages (Ê£²¾Áۥѥ屡¼¥¸)/ ¤Ï¡¢
234 ¤½¤Î²¾Áۥѥ屡¼¥¸Ì¾¤òÄ󶡤¹¤ë¥Ñ¥Ã¥±¡¼¥¸¤¬Ê£¿ô¤¢¤ë¤«¡¢
235 ¤Þ¤¿¥Ñ¥Ã¥±¡¼¥¸Ì¾¤ÈƱ¤¸²¾Áۥѥ屡¼¥¸Ì¾¤ò»ý¤Ä¥Ñ¥Ã¥±¡¼¥¸¿ô¤òɽ¤·¤Þ¤¹¡£
236 Î㤨¤Ð¡¢Debian GNU/Linux ¥·¥¹¥Æ¥à¤Ç¤Ï¡¢debconf ¤Ï¼ÂºÝ¤Î¥Ñ¥Ã¥±¡¼¥¸Ì¾¤Ç¤â
237 ¤¢¤ê¤Þ¤¹¤¬¡¢debconf-tiny ¤Ë¤è¤Ã¤ÆÄ󶡤⤵¤ì¤Æ¤¤¤Þ¤¹¡£
242 <literal/Missing/ is the number of package names that were referenced in
243 a dependency but were not provided by any package. Missing packages may
244 be in evidence if a full distribution is not accesssed, or if a package
245 (real or virtual) has been dropped from the distribution. Usually they
246 are referenced from Conflicts statements.
248 <literal/Missing (·çÍî)/ ¤Ï¡¢°Í¸´Ø·¸Ãæ¤Ë¤Ï¸ºß¤¹¤ë¤Î¤Ë¡¢¤É¤Î¥Ñ¥Ã¥±¡¼¥¸
249 ¤Ë¤âÄ󶡤µ¤ì¤Æ¤¤¤Ê¤¤¥Ñ¥Ã¥±¡¼¥¸Ì¾¤Î¿ô¤òɽ¤·¤Þ¤¹¡£
250 ¥Ñ¥Ã¥±¡¼¥¸¤¬¤¢¤ë¤È¤¤¤¦¤³¤È¤Ï¡¢Á´¥Ç¥£¥¹¥È¥ê¥Ó¥å¡¼¥·¥ç¥ó¤Ë¥¢¥¯¥»¥¹¤Ç
251 ¤¤Æ¤¤¤Ê¤¤¤«¡¢(¼Â¤Ê¤¤¤·²¾ÁÛ) ¥Ñ¥Ã¥±¡¼¥¸¤¬¥Ç¥£¥¹¥È¥ê¥Ó¥å¡¼¥·¥ç¥ó¤«¤é
252 ¤Ï¤º¤µ¤ì¤Æ¤·¤Þ¤Ã¤¿¤«¤â¤·¤ì¤Ê¤¤¤³¤È¤òɽ¤·¤Þ¤¹¡£
253 Ä̾¤³¤ì¤Ï¹½Ê¸¤¬Ì·½â¤¹¤ë¤³¤È¤Ç»²¾È¤µ¤ì¤Þ¤¹¡£
258 <literal/Total distinct/ versions is the number of package versions
259 found in the cache; this value is therefore at least equal to the
260 number of total package names. If more than one distribution (both
261 "stable" and "unstable", for instance), is being accessed, this value
262 can be considerably larger than the number of total package names.
264 <literal/Total distinct versions (¸ÄÊ̥С¼¥¸¥ç¥ó·×)/ ¤Ï¥¥ã¥Ã¥·¥å¤Ë
265 ¸ºß¤¹¤ë¥Ñ¥Ã¥±¡¼¥¸¤Î¥Ð¡¼¥¸¥ç¥ó¤Î¿ô¤òɽ¤·¤Þ¤¹¡£¤½¤Î¤¿¤á¡¢¤³¤ÎÃͤÏ
266 ºÇ¾®¤Ç¤âÁí¥Ñ¥Ã¥±¡¼¥¸·×¤È°ìÃפ·¤Þ¤¹¡£
267 ¤¿¤È¤¨¤Ð 2 ¼ïÎà°Ê¾å¤Î¥Ç¥£¥¹¥È¥ê¥Ó¥å¡¼¥·¥ç¥ó
268 ("stable" ¤È "unstable"¤ÎξÊý¤Ê¤É) ¤òÍøÍѤ·¤¿¾ì¹ç¡¢
269 ¤³¤ÎÃͤϥѥ屡¼¥¸·×¤è¤ê¤â¤«¤Ê¤êÂ礤¤¿ô¤Ë¤Ê¤ê¤Þ¤¹¡£
274 <literal/Total dependencies/ is the number of dependency relationships
275 claimed by all of the packages in the cache.
277 <literal/Total dependencies (Áí°Í¸´Ø·¸)/ ¤Ï¥¥ã¥Ã¥·¥åÆâ¤Î¤¹¤Ù¤Æ¤Î
278 ¥Ñ¥Ã¥±¡¼¥¸¤ÇÍ׵ᤵ¤ì¤¿°Í¸´Ø·¸¤Î¿ô¤Ç¤¹¡£
283 <VarListEntry><Term>showsrc</Term>
286 <literal/showsrc/ displays all the source package records that match
287 the given package names. All versions are shown, as well as all
288 records that declare the name to be a Binary.
291 <literal/showsrc/ ¤Ï»ØÄꤷ¤¿¥Ñ¥Ã¥±¡¼¥¸Ì¾¤È°ìÃפ¹¤ë¥½¡¼¥¹¥Ñ¥Ã¥±¡¼¥¸¤ò¡¢
292 ¤¹¤Ù¤Æɽ¼¨¤·¤Þ¤¹¡£»ØÄꤷ¤¿¥Ñ¥Ã¥±¡¼¥¸¤Ë¤Ä¤¤¤Æ¡¢¥Ð¥¤¥Ê¥ê¤Ë¤Ê¤ë¤È¤¤Î̾¾Î¤ò
293 Àë¸À¤·¤¿¥ì¥³¡¼¥ÉƱÍͤˡ¢¤¹¤Ù¤Æ¤Î¥Ð¡¼¥¸¥ç¥ó¤Ë¤Ä¤¤¤Æɽ¼¨¤·¤Þ¤¹¡£
296 <VarListEntry><Term>dump</Term>
299 <literal/dump/ shows a short listing of every package in the cache. It is
300 primarily for debugging.
302 <literal/dump/ ¤Ï¥¥ã¥Ã¥·¥å¤Ë¤¢¤ë¥Ñ¥Ã¥±¡¼¥¸Ëè¤Î¡¢Ã»¤¤°ìÍ÷¤òɽ¼¨¤·¤Þ¤¹¡£
306 <VarListEntry><Term>dumpavail</Term>
309 <literal/dumpavail/ prints out an available list to stdout. This is
310 suitable for use with &dpkg; and is used by the &dselect; method.
312 <literal/dumpavail/ ¤Ïɸ½à½ÐÎϤˡ¢ÍøÍѲÄǽ¤Ê¤â¤Î¤Î°ìÍ÷¤ò½ÐÎϤ·¤Þ¤¹¡£
313 &dpkg; ¤È¶¦¤Ë»ÈÍѤ¹¤ë¤ÈÊØÍø¤Ç¤¹¡£¤Þ¤¿ &dselect; ¤Ç¤â»ÈÍѤµ¤ì¤Þ¤¹¡£
316 <VarListEntry><Term>unmet</Term>
319 <literal/unmet/ displays a summary of all unmet dependencies in the
322 <literal/unmet/ ¤Ï¥Ñ¥Ã¥±¡¼¥¸¥¥ã¥Ã¥·¥åÆâ¤Î¡¢ÉÔŬÅö¤Ê°Í¸´Ø·¸¤Î³µÍפò
326 <VarListEntry><Term>show</Term>
329 <literal/show/ performs a function similar to
330 <command>dpkg - -print-avail</>, it displays the package records for the
333 <literal/show/ ¤Ï <command>dpkg --print-avail</> ¤Ë»÷¤¿µ¡Ç½¤ò¼Â¹Ô¤·¤Þ¤¹¡£
334 »ØÄꤷ¤¿¥Ñ¥Ã¥±¡¼¥¸¤Î¥Ñ¥Ã¥±¡¼¥¸¥ì¥³¡¼¥É¤òɽ¼¨¤·¤Þ¤¹¡£
337 <VarListEntry><Term>search</Term>
340 <literal/search/ performs a full text search on all available package
341 files for the regex pattern given. It searchs the package names and the
342 descriptions for an occurance of the string and prints out the package
343 name and the short description. If <option/- -full/ is given then output
344 identical to <literal/show/ is produced for each matched package and
345 if <option/- -names-only/ is given then the long description is not
346 searched, only the package name is.
348 <literal/search/ ¤ÏÍ¿¤¨¤é¤ì¤¿Àµµ¬É½¸½¤Ë¤è¤Ã¤Æ¡¢¤¹¤Ù¤Æ¤ÎÍøÍѲÄǽ¤Ê
349 ¥Ñ¥Ã¥±¡¼¥¸¤ËÂФ·¤ÆÁ´Ê¸¸¡º÷¤ò¹Ô¤¤¤Þ¤¹¡£¥Ñ¥Ã¥±¡¼¥¸Ì¾¤ÈÀâÌÀ¤ËÂФ·¤Æ¸¡º÷¤ò
350 ¹Ô¤¤¡¢¥Ñ¥Ã¥±¡¼¥¸Ì¾¤Èû¤¤ÀâÌÀʸ¤òɽ¼¨¤·¤Þ¤¹¡£
351 <option/--full/ ¤¬Í¿¤¨¤é¤ì¤¿¾ì¹ç¡¢¥Þ¥Ã¥Á¤·¤¿¥Ñ¥Ã¥±¡¼¥¸¤ËÂФ·
352 <literal/show/ ¤ÈƱ¤¸¾ðÊó¤ò½ÐÎϤ·¤Þ¤¹¡£
353 <option/--names-only/ ¤¬Í¿¤¨¤é¤ì¤¿¾ì¹ç¤Ï¡¢ÀâÌÀʸ¤ËÂФ·¤Æ¸¡º÷¤ò¹Ô¤ï¤º¡¢
354 ¥Ñ¥Ã¥±¡¼¥¸Ì¾¤ËÂФ·¤Æ¤Î¤ßÂоݤȤ·¤Þ¤¹¡£
357 Seperate arguments can be used to specified multiple search patterns that
360 ¶õÇò¤Ç¶èÀڤä¿°ú¿ô¤ÇÊ£¿ô¤Î¸¡º÷¥Ñ¥¿¡¼¥ó¤Î and ¤ò¤È¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
363 <VarListEntry><Term>depends</Term>
366 <literal/depends/ shows a listing of each dependency a package has
367 and all the possible other packages that can fullfill that dependency.
369 <literal/depends/ ¤Ï¡¢¥Ñ¥Ã¥±¡¼¥¸¤¬»ý¤Ã¤Æ¤¤¤ë°Í¸´Ø·¸¤È¡¢¤½¤Î°Í¸´Ø·¸¤ò
370 Ëþ¤¿¤¹Â¾¤Î¥Ñ¥Ã¥±¡¼¥¸¤Î°ìÍ÷¤òɽ¼¨¤·¤Þ¤¹¡£
373 <VarListEntry><Term>pkgnames</Term>
376 This command prints the name of each package in the system. The optional
377 argument is a prefix match to filter the name list. The output is suitable
378 for use in a shell tab complete function and the output is generated
379 extremly quickly. This command is best used with the
380 <option/- -generate/ option.
382 ¤³¤Î¥³¥Þ¥ó¥É¤Ï¡¢¥·¥¹¥Æ¥à¤Ç¤Î³Æ¥Ñ¥Ã¥±¡¼¥¸¤Î̾¾Î¤òɽ¼¨¤·¤Þ¤¹¡£
383 ¥ª¥×¥·¥ç¥ó¤Î°ú¿ô¤Ë¤è¤ê¡¢¼èÆÀ¤¹¤ë°ìÍ÷¤è¤êÀèƬ°ìÃפÇÃê½Ð¤¹¤ë¤³¤È¤¬¤Ç¤¤Þ¤¹¡£
384 ¤³¤Î½ÐÎϤϥ·¥§¥ë¤Î¥¿¥Ö¤Ë¤è¤ëÊä´°µ¡Ç½¤Ç»È¤¤¤ä¤¹¤¯¡¢¤Þ¤¿Èó¾ï¤Ë®¤¯À¸À®¤µ¤ì¤Þ¤¹¡£
385 ¤³¤Î¥³¥Þ¥ó¥É¤Ï <option/--generate/ ¥ª¥×¥·¥ç¥ó¤È¶¦¤Ë»ÈÍѤ¹¤ë¤ÈÈó¾ï¤Ë
388 <VarListEntry><Term>dotty</Term>
391 <literal/dotty/ takes a list of packages on the command line and
392 gernerates output suitable for use by dotty from the
393 <ulink url="http://www.research.att.com/sw/tools/graphviz/">GraphViz</>
394 package. The result will be a set of nodes and edges representing the
395 relationships between the packages. By default the given packages will
396 trace out all dependent packages which can produce a very large graph.
397 This can be turned off by setting the
398 <literal>APT::Cache::GivenOnly</> option.
400 <literal/dotty/ ¤Ï¡¢¥³¥Þ¥ó¥É¥é¥¤¥ó¾å¤Î¥Ñ¥Ã¥±¡¼¥¸Ì¾¤«¤é¡¢
401 <ulink url="http://www.research.att.com/sw/tools/graphviz/">GraphViz</>
402 ¥Ñ¥Ã¥±¡¼¥¸¤Î dotty ¥³¥Þ¥ó¥É¤ÇÍøÍѤ¹¤ë¤Î¤ËÊØÍø¤Ê½ÐÎϤòÀ¸À®¤·¤Þ¤¹¡£
403 ·ë²Ì¤Ï¥Ñ¥Ã¥±¡¼¥¸¤Î´Ø·¸¤òɽ¤ï¤¹¡¢¥Î¡¼¥É¡¦¥¨¥Ã¥¸¤Î¥»¥Ã¥È¤Çɽ¸½¤µ¤ì¤Þ¤¹¡£
404 ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¡¢¤¹¤Ù¤Æ¤Î°Í¸¥Ñ¥Ã¥±¡¼¥¸¤ò¥È¥ì¡¼¥¹¤¹¤ë¤Î¤Ç¡¢Èó¾ï¤ËÂ礤¤
406 ¤³¤ì¤Ï¡¢<literal>APT::Cache::GivenOnly</> ¥ª¥×¥·¥ç¥ó¤ÎÀßÄê¤Ç²ò½ü¤¹¤ë
410 The resulting nodes will have several shapse, normal packages are boxes,
411 pure provides are triangles, mixed provides are diamonds,
412 hexagons are missing packages. Orange boxes mean recursion was stopped
413 [leaf packages], blue lines are prre-depends, green lines are conflicts.
415 ·ë²Ì¤Î¥Î¡¼¥É¤Ï¿ô¼ïÎà¤Î·Á¾õ¤È¤Ê¤ê¤Þ¤¹¡£
416 Ä̾ï¥Ñ¥Ã¥±¡¼¥¸¤Ï»Í³Ñ¡¢½ã²¾Áۥѥ屡¼¥¸¤Ï»°³Ñ¡¢Ê£²¾Áۥѥ屡¼¥¸¤ÏÉ©·Á¡¢
417 Ï»³Ñ·Á¤Ï·çÍî¥Ñ¥Ã¥±¡¼¥¸¤ò¤½¤ì¤¾¤ìɽ¤·¤Þ¤¹¡£
418 ¥ª¥ì¥ó¥¸¤Î»Í³Ñ¤ÏºÆµ¯¤¬½ªÎ»¤·¤¿¡Ö¥ê¡¼¥Õ¥Ñ¥Ã¥±¡¼¥¸¡×¡¢ÀĤ¤Àþ¤Ï pre-depends¡¢
419 ÎФÎÀþ¤Ï¶¥¹ç¤òɽ¤·¤Þ¤¹¡£
422 Caution, dotty cannot graph larger sets of packages.
424 Ãí°Õ) dotty ¤Ï¥Ñ¥Ã¥±¡¼¥¸¤Î¤è¤êÂ礤ʥ»¥Ã¥È¤Î¥°¥é¥Õ¤ÏÉÁ¤±¤Þ¤»¤ó¡£
425 <VarListEntry><Term>policy</Term>
428 <literal/policy/ is ment to help debug issues relating to the
429 preferences file. With no arguments it will print out the
430 priorities of each source. Otherwise it prints out detailed information
431 about the priority selection of the named package.
433 <literal/policy/ ¤ÏÀßÄê¥Õ¥¡¥¤¥ë´Ø·¸¤ÎÌäÂê¤Ë¤Ä¤¤¤Æ¡¢¥Ç¥Ð¥Ã¥°¤ò»Ù±ç¤·¤Þ¤¹¡£
434 °ú¿ô¤ò»ØÄꤷ¤Ê¤«¤Ã¤¿¾ì¹ç¡¢¼èÆÀ¸µ¤´¤È¤ÎÍ¥Àè½ç°Ì¤òɽ¼¨¤·¤Þ¤¹¡£
435 °ìÊý¡¢¥Ñ¥Ã¥±¡¼¥¸Ì¾¤ò»ØÄꤷ¤¿¾ì¹ç¡¢Í¥Àè½ç¤Î¾ÜºÙ¾ðÊó¤òɽ¼¨¤·¤Þ¤¹¡£
441 <RefSect1><Title>Options</>
443 <RefSect1><Title>¥ª¥×¥·¥ç¥ó</>
447 <VarListEntry><term><option/-p/</><term><option/--pkg-cache/</>
450 Select the file to store the package cache. The package cache is the
451 primary cache used by all operations.
452 Configuration Item: <literal/Dir::Cache::pkgcache/.
454 ¥Ñ¥Ã¥±¡¼¥¸¥¥ã¥Ã¥·¥å¤ò³ÊǼ¤¹¤ë¥Õ¥¡¥¤¥ë¤òÁªÂò¤·¤Þ¤¹¡£
455 ¥Ñ¥Ã¥±¡¼¥¸¥¥ã¥Ã¥·¥å¤Ï¡¢¤¹¤Ù¤Æ¤ÎÁàºî¤Ç»ÈÍѤµ¤ì¤ë°ì¼¡¥¥ã¥Ã¥·¥å¤Ç¤¹¡£
456 ÀßÄê¹àÌÜ - <literal/Dir::Cache::pkgcache/
459 <VarListEntry><term><option/-s/</><term><option/--src-cache/</>
462 Select the file to store the source cache. The source is used only by
463 <literal/gencaches/ and it stores a parsed version of the package
464 information from remote sources. When building the package cache the
465 source cache is used to advoid reparsing all of the package files.
466 Configuration Item: <literal/Dir::Cache::srcpkgcache/.
468 ¥½¡¼¥¹¥¥ã¥Ã¥·¥å¤ò³ÊǼ¤¹¤ë¥Õ¥¡¥¤¥ë¤òÁªÂò¤·¤Þ¤¹¡£
469 ¤³¤Î¥½¡¼¥¹¥¥ã¥Ã¥·¥å¤Ï <literal/gencaches/ ¤Ç¤Î¤ß»ÈÍѤµ¤ì¡¢
470 ¤³¤³¤Ë²òÀϤµ¤ì¤¿¼èÆÀ¸µ¤Î¥Ñ¥Ã¥±¡¼¥¸¾ðÊ󤬳ÊǼ¤µ¤ì¤Æ¤¤¤Þ¤¹¡£
471 ¥Ñ¥Ã¥±¡¼¥¸¥¥ã¥Ã¥·¥å¤ò¹½ÃÛ¤¹¤ëºÝ¤Ë¡¢¥½¡¼¥¹¥¥ã¥Ã¥·¥å¤Ï¡¢
472 Á´¥Ñ¥Ã¥±¡¼¥¸¥Õ¥¡¥¤¥ë¤òºÆ²òÀϤòÈò¤±¤ë¾å¤ÇÊØÍø¤Ç¤¹¡£
473 <!--advoid ¤Ï avoid ¤Î¥ß¥¹¥¹¥Ú¥ë¡© -->
474 ÀßÄê¹àÌÜ - <literal/Dir::Cache::srcpkgcache/
477 <VarListEntry><term><option/-q/</><term><option/--quiet/</>
480 Quiet; produces output suitable for logging, omitting progress indicators.
481 More qs will produce more quite up to a maximum of 2. You can also use
482 <option/-q=#/ to set the quiet level, overriding the configuration file.
483 Configuration Item: <literal/quiet/.
485 ÀŲº - ¿ÊĽɽ¼¨¤ò¾Êά¤·¤Æ¥í¥°¤ò¤È¤ë¤Î¤ËÊØÍø¤Ê½ÐÎϤò¹Ô¤¤¤Þ¤¹¡£
486 ºÇÂç 2 ¤Ä¤Þ¤Ç q ¤ò½Å¤Í¤ë¤³¤È¤Ç¤è¤êÀŤ«¤Ë¤Ç¤¤Þ¤¹¡£
487 ¤Þ¤¿¡¢<option/-q=#/ ¤Î¤è¤¦¤ËÀŲº¥ì¥Ù¥ë¤ò»ØÄꤷ¤Æ¡¢ÀßÄê¥Õ¥¡¥¤¥ë¤ò
488 ¾å½ñ¤¤¹¤ë¤³¤È¤â¤Ç¤¤Þ¤¹¡£
489 ÀßÄê¹àÌÜ - <literal/quiet/
492 <VarListEntry><term><option/-i/</><term><option/--important/</>
495 Print only important deps; for use with unmet causes only Depends and
496 Pre-Depends relations to be printed.
497 Configuration Item: <literal/APT::Cache::Important/.
499 ¡Ö½ÅÍספΤßɽ¼¨ - Dipends ¤È Pre-Depends ¤Î¤ßɽ¼¨¤¹¤ë¤¿¤á¡¢
500 unmet ¤È¶¦¤Ë»ÈÍѤ·¤Þ¤¹¡£
501 ÀßÄê¹àÌÜ - <literal/APT::Cache::Important/
504 <VarListEntry><term><option/-f/</><term><option/--full/</>
507 Print full package records when searching.
508 Configuration Item: <literal/APT::Cache::ShowFull/.
510 search »þ¤ËÁ´¥Ñ¥Ã¥±¡¼¥¸¥ì¥³¡¼¥É¤òɽ¼¨¤·¤Þ¤¹¡£
511 ÀßÄê¹àÌÜ - <literal/APT::Cache::ShowFull/
514 <VarListEntry><term><option/-a/</><term><option/--all-versions/</>
517 Print full records for all available versions, this is only applicable to
519 Configuration Item: <literal/APT::Cache::AllVersions/.
521 Á´ÍøÍѲÄǽ¥Ð¡¼¥¸¥ç¥ó¤ÎÁ´¥ì¥³¡¼¥É¤òɽ¼¨¤·¤Þ¤¹¡£
522 show ¥³¥Þ¥ó¥É¤Ç¤Î¤ßŬÍѤǤ¤Þ¤¹¡£
523 ÀßÄê¹àÌÜ - <literal/APT::Cache::AllVersions/
526 <VarListEntry><term><option/-g/</><term><option/--generate/</>
529 Perform automatic package cache regeneration, rather than use the cache
530 as it is. This is the default, to turn it off use <option/- -no-generate/.
531 Configuration Item: <literal/APT::Cache::Generate/.
533 ¤½¤Î¤Þ¤Þ¥¥ã¥Ã¥·¥å¤ò»ÈÍѤ¹¤ë¤Î¤Ç¤Ï¤Ê¤¯¡¢¼«Æ°Åª¤Ë¥Ñ¥Ã¥±¡¼¥¸¥¥ã¥Ã¥·¥å¤ò
534 ºÆÀ¸À®¤·¤Þ¤¹¡£¤³¤ì¤Ï¥Ç¥Õ¥©¥ë¥È¤ÎÆ°ºî¤Ç¤¹¤¬¡¢<option/--no-generate/ ¤ò
535 »ÈÍѤ¹¤ë¤È̵¸ú¤Ë¤Ç¤¤Þ¤¹¡£
536 ÀßÄê¹àÌÜ - <literal/APT::Cache::Generate/
539 <VarListEntry><term><option/--names-only/</><term><option/-n/</>
542 Only search on the package names, not the long description.
543 Configuration Item: <literal/APT::Cache::NamesOnly/.
545 ÀâÌÀʸ¤Ç¤Ï¤Ê¤¯¡¢¥Ñ¥Ã¥±¡¼¥¸Ì¾¤«¤é¤Î¤ß¸¡º÷¤·¤Þ¤¹¡£
546 ÀßÄê¹àÌÜ - <literal/APT::Cache::NamesOnly/
549 <VarListEntry><term><option/--all-names/</>
552 Make <literal/pkgnames/ print all names, including virtual packages
553 and missing dependencies.
554 Configuration Item: <literal/APT::Cache::AllNames/.
556 <literal/pkgnames/ ¤Ç¡¢²¾Áۥѥ屡¼¥¸¤äÉÔÌÀ¤Ê°Í¸´Ø·¸¤ò´Þ¤á¤¿Á´Ì¾¾Î¤ò
558 ÀßÄê¹àÌÜ - <literal/APT::Cache::AllNames/
561 <VarListEntry><term><option/--recurse/</>
564 Make <literal/depends/ recursive so that all packages mentioned are
566 Configuration Item: <literal/APT::Cache::RecurseDepends/.
568 <literal/depends/ ¤Ç¡¢»ØÄꤷ¤¿Á´¥Ñ¥Ã¥±¡¼¥¸¤òºÆµ¢Åª¤Ë°ìÅÙ¤Ëɽ¼¨¤·¤Þ¤¹¡£
569 ÀßÄê¹àÌÜ - <literal/APT::Cache::RecurseDepends/
578 <RefSect1><Title>Files</>
580 <RefSect1><Title>¥Õ¥¡¥¤¥ë</>
582 <VarListEntry><term><filename>/etc/apt/sources.list</></term>
585 locations to fetch packages from.
586 Configuration Item: <literal/Dir::Etc::SourceList/.
589 ÀßÄê¹àÌÜ - <literal/Dir::Etc::SourceList/
592 <VarListEntry><term><filename>&statedir;/lists/</></term>
595 storage area for state information for each package resource specified in
597 Configuration Item: <literal/Dir::State::Lists/.
599 &sources-list; ¤Ë»ØÄꤷ¤¿¥Ñ¥Ã¥±¡¼¥¸¥ê¥½¡¼¥¹¤´¤È¤Î¾õÂÖ¾ðÊó³ÊǼ¥¨¥ê¥¢¡£
600 ÀßÄê¹àÌÜ - <literal/Dir::State::Lists/
603 <VarListEntry><term><filename>&statedir;/lists/partial/</></term>
606 storage area for state information in transit.
607 Configuration Item: <literal/Dir::State::Lists/ (implicit partial).
609 ¼èÆÀÃæ¾õÂÖ¾ðÊó³ÊǼ¥¨¥ê¥¢¡£
610 ÀßÄê¹àÌÜ - <literal/Dir::State::Lists/ (ɬÁ³Åª¤ËÉÔ´°Á´¤Ç¤¹)
616 <RefSect1><Title>See Also</>
618 <RefSect1><Title>´ØÏ¢¹àÌÜ</>
620 &apt-conf;, &sources-list;, &apt-get;
624 <RefSect1><Title>Diagnostics</>
626 <RefSect1><Title>¿ÇÃÇ¥á¥Ã¥»¡¼¥¸</>
629 <command/apt-cache/ returns zero on normal operation, decimal 100 on error.
631 <command/apt-cache/ ¤ÏÀµ¾ï½ªÎ»»þ¤Ë 0 ¤òÊÖ¤·¤Þ¤¹¡£
632 ¥¨¥é¡¼»þ¤Ë¤Ï½½¿Ê¤Î 100 ¤òÊÖ¤·¤Þ¤¹¡£