apt-config.ja.8.xml 4.9 KB

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