'\" t .\" Title: apt-config .\" Author: Gunthorpe Jason[FAMILY Given] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: 30\ \&11 月\ \&2013 .\" Manual: APT .\" Source: APT 1.4.9 .\" Language: Japanese .\" .TH "APT\-CONFIG" "8" "30\ \&11 月\ \&2013" "APT 1.4.9" "APT" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "名前" apt-config \- APT 設定取得プログラム .SH "概要" .HP \w'\fBapt\-config\fR\ 'u \fBapt\-config\fR [\fB\-\-empty\fR] [\fB\-\-format\ \*(Aq\fR\fB\fI%f\ "%v";%n\fR\fR\fB\*(Aq\fR] [\fB\-o=\fR\fB\fIconfig_string\fR\fR] [\fB\-c=\fR\fB\fIconfig_file\fR\fR] {shell | dump | {\-v\ |\ \-\-version} | {\-h\ |\ \-\-help}} .SH "説明" .PP \fBapt\-config\fR は、APT スイートの様々な所で一貫した設定を行うために使用する、内部プログラムです。スクリプトアプリケーションで使いやすい方法で、メイン設定ファイル /etc/apt/apt\&.conf にアクセスします。 .PP \fB\-h\fR オプションや \fB\-\-help\fR オプションを除き、以下に挙げるコマンドが必要です。 .PP \fBshell\fR .RS 4 shell は、シェルスクリプトから設定情報にアクセスするのに使用します。引数として、まずシェル変数、次に取得したい設定値をペアで与えます。出力として、現在の値ごとのシェル代入コマンドを列挙します。シェルスクリプト内では、以下のようにしてください。 .sp .if n \{\ .RS 4 .\} .nf OPTS="\-f" RES=`apt\-config shell OPTS MyApp::options` eval $RES .fi .if n \{\ .RE .\} これは、MyApp::options の値をシェル環境変数 $OPTS にセットします。デフォルト値は \fB\-f\fR となります。 .sp 設定項目は /[fdbi] を後ろに付けられます。f はファイル名を、d はディレクトリを、b は true か false を、i は整数を返します。返り値ごとに内部で正規化と検証を行います。 .RE .PP \fBdump\fR .RS 4 設定箇所の内容を表示するだけです。 .RE .SH "オプション" .PP All command line options may be set using the configuration file, the descriptions indicate the configuration option to set\&. For boolean options you can override the config file by using something like \fB\-f\-\fR,\fB\-\-no\-f\fR, \fB\-f=no\fR or several other variations\&. .PP \fB\-\-empty\fR .RS 4 値が空のオプションを含めます。これはデフォルトですので、出力から取り除くには \-\-no\-empty としてください。 .RE .PP \fB\-\-format \*(Aq\fR\fB\fI%f "%v";%n\fR\fR\fB\*(Aq\fR .RS 4 各設定オプションの出力を定義します。%t はオプション名に、%f は完全オプション名に、%v はオプションの値に置換されます。大文字や特殊文字を使用する値は、安全を保証するために、RFC822 で定義されている quoted\-string でエンコードされることになります。さらに、%n は改行に、%N はタブ文字になります。% を出力するには、%% としてください。 .RE .PP \fB\-h\fR, \fB\-\-help\fR .RS 4 Show a short usage summary\&. .RE .PP \fB\-v\fR, \fB\-\-version\fR .RS 4 Show the program version\&. .RE .PP \fB\-c\fR, \fB\-\-config\-file\fR .RS 4 Configuration File; Specify a configuration file to use\&. The program will read the default configuration file and then this configuration file\&. If configuration settings need to be set before the default configuration files are parsed specify a file with the \fBAPT_CONFIG\fR environment variable\&. See \fBapt.conf\fR(5) for syntax information\&. .RE .PP \fB\-o\fR, \fB\-\-option\fR .RS 4 Set a Configuration Option; This will set an arbitrary configuration option\&. The syntax is \fB\-o Foo::Bar=bar\fR\&. \fB\-o\fR and \fB\-\-option\fR can be used multiple times to set different options\&. .RE .SH "関連項目" .PP \fBapt.conf\fR(5) .SH "診断メッセージ" .PP \fBapt\-config\fR は正常終了時に 0 を返します。エラー時には十進の 100 を返します。 .SH "BUGS" .PP \m[blue]\fBAPT bug page\fR\m[]\&\s-2\u[1]\d\s+2\&. If you wish to report a bug in APT, please see /usr/share/doc/debian/bug\-reporting\&.txt or the \fBreportbug\fR(1) command\&. .SH "TRANSLATION" .PP The english translation was done by John Doe in 2009, 2010 and Daniela Acme in 2010 together with the Debian Dummy l10n Team \&. .PP Note that this translated document may contain untranslated parts\&. This is done on purpose, to avoid losing content when the translation is lagging behind the original content\&. .SH "著者" .PP \fBGunthorpe Jason[FAMILY Given]\fR .RS 4 .RE .PP \fB[FAMILY Given]\fR .RS 4 .RE .SH "注記" .IP " 1." 4 APT bug page .RS 4 \%http://bugs.debian.org/src:apt .RE