* merged with apt--debian-sid
[ntk/apt.git] / doc / ja / apt-config.ja.8.xml
1 <?xml version="1.0" encoding="utf-8" standalone="no"?>
2 <!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook XML V4.2//EN"
3 "http://www.oasis-open.org/docbook/xml/4.2/docbookx.dtd" [
4
5 <!ENTITY % aptent SYSTEM "apt.ent.ja">
6 %aptent;
7
8 ]>
9
10 <refentry>
11
12 <refentryinfo>
13 &apt-author.jgunthorpe;
14 &apt-author.team;
15 &apt-email;
16 &apt-product;
17 <!-- The last update date -->
18 <date>29 February 2004</date>
19 </refentryinfo>
20
21 <refmeta>
22 <refentrytitle>apt-config</refentrytitle>
23 <manvolnum>8</manvolnum>
24 </refmeta>
25
26 <!-- Man page title -->
27 <refnamediv>
28 <refname>apt-config</refname>
29 <!--
30 <refpurpose>APT Configuration Query program</refpurpose>
31 -->
32 <refpurpose>APT 設定取得プログラム</refpurpose>
33 </refnamediv>
34
35 <!-- Arguments -->
36 <refsynopsisdiv>
37 <cmdsynopsis>
38 <command>apt-config</command>
39 <arg><option>-hv</option></arg>
40 <arg><option>-o=<replaceable>config string</replaceable></option></arg>
41 <arg><option>-c=<replaceable>file</replaceable></option></arg>
42 <group choice="req">
43 <arg>shell</arg>
44 <arg>dump</arg>
45 </group>
46 </cmdsynopsis>
47 </refsynopsisdiv>
48
49 <!--
50 <refsect1><title>Description</title>
51 -->
52 <refsect1><title>説明</title>
53 <!--
54 <para><command>apt-config</command> is an internal program used by various
55 portions of the APT suite to provide consistent configurability. It accesses
56 the main configuration file <filename>/etc/apt/apt.conf</filename> in a
57 manner that is easy to use by scripted applications.</para>
58 -->
59 <para><command>apt-config</command> は、
60 APT スイートの様々な所で一貫した設定を行うために使用する、内部ツールです。
61 スクリプトアプリケーションで使いやすい方法で、
62 メイン設定ファイル <filename>/etc/apt/apt.conf</filename>
63 にアクセスします。</para>
64
65 <!--
66 <para>Unless the <option>-h</option>, or <option>-\-help</option> option is
67 given one of the commands below must be present.
68 </para>
69 -->
70 <para><option>-h</option><option>--help</option> オプションを除き、
71 以下に挙げるコマンドが必要です。</para>
72
73 <variablelist>
74 <varlistentry><term>shell</term>
75 <listitem><para>
76 <!--
77 shell is used to access the configuration information from a shell
78 script. It is given pairs of arguments, the first being a shell
79 variable and the second the configuration value to query. As output
80 it lists a series of shell assignments commands for each present value.
81 In a shell script it should be used like:
82 -->
83 shell は、シェルスクリプトから設定情報にアクセスするのに使用します。
84 引数として、まずシェル変数、次に取得したい設定値をペアで与えます。
85 出力として、現在の値ごとにシェル代入コマンドの一覧を表示します。
86 シェルスクリプト内では、以下のようにしてください。
87 </para>
88
89 <informalexample><programlisting>
90 OPTS="-f"
91 RES=`apt-config shell OPTS MyApp::options`
92 eval $RES
93 </programlisting></informalexample>
94
95 <!--
96 <para>This will set the shell environment variable $OPTS to the value of
97 MyApp::options with a default of <option>-f</option>.</para>
98 -->
99 <para>これは、MyApp::options の値をシェル環境変数 $OPTS にセットします。
100 デフォルト値は <option>-f</option> となります。</para>
101
102 <!--
103 <para>The configuration item may be postfixed with a /[fdbi]. f returns
104 file names, d returns directories, b returns true or false and i returns
105 an integer. Each of the returns is normalized and verified
106 internally.</para>
107 -->
108 <para>設定項目は /[fdbi] を後ろに付けられます。
109 f はファイル名を、d はディレクトリを、b は true か false を、
110 i は整数を返します。
111 返り値ごとに内部で正規化と検証を行います。</para>
112
113 </listitem>
114 </varlistentry>
115
116 <varlistentry><term>dump</term>
117 <listitem><para>
118 <!--
119 Just show the contents of the configuration space.</para>
120 -->
121 設定箇所の内容を表示するだけです。</para>
122 </listitem>
123 </varlistentry>
124
125 </variablelist>
126 </refsect1>
127
128 <!--
129 <refsect1><title>options</title>
130 -->
131 <refsect1><title>オプション</title>
132 &apt-cmdblurb;
133
134 <variablelist>
135
136 &apt-commonoptions;
137
138 </variablelist>
139 </refsect1>
140
141 <!--
142 <refsect1><title>See Also</title>
143 -->
144 <refsect1><title>関連項目</title>
145 <para>&apt-conf;
146 </para>
147 </refsect1>
148
149 <!--
150 <refsect1><title>Diagnostics</title>
151 -->
152 <refsect1><title>診断メッセージ</title>
153 <!--
154 <para><command>apt-config</command> returns zero on normal operation, decimal 100 on error.
155 -->
156 <para><command>apt-config</command> は正常終了時に 0 を返します。
157 エラー時には十進の 100 を返します。
158 </para>
159 </refsect1>
160
161 &manbugs;
162 &translator;
163
164 </refentry>
165