]> git.saurik.com Git - apt-legacy.git/blame - doc/ja/apt_preferences.ja.5
Commit that APT bug fix from their bug tracker.
[apt-legacy.git] / doc / ja / apt_preferences.ja.5
CommitLineData
0e5943eb 1'\" t
da6ee469
JF
2.\" Title: apt_preferences
3.\" Author: APT team
0e5943eb
JF
4.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
5.\" Date: 04 May 2009
6.\" Manual: APT
da6ee469 7.\" Source: Linux
0e5943eb 8.\" Language: English
da6ee469 9.\"
0e5943eb
JF
10.TH "APT_PREFERENCES" "5" "04 May 2009" "Linux" "APT"
11.\" -----------------------------------------------------------------
12.\" * Define some portability stuff
13.\" -----------------------------------------------------------------
14.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
15.\" http://bugs.debian.org/507673
16.\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
17.\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
18.ie \n(.g .ds Aq \(aq
19.el .ds Aq '
20.\" -----------------------------------------------------------------
21.\" * set default formatting
22.\" -----------------------------------------------------------------
da6ee469
JF
23.\" disable hyphenation
24.nh
25.\" disable justification (adjust text to left margin only)
26.ad l
0e5943eb
JF
27.\" -----------------------------------------------------------------
28.\" * MAIN CONTENT STARTS HERE *
29.\" -----------------------------------------------------------------
da6ee469 30.SH "NAME"
0e5943eb
JF
31apt_preferences \- APT 設定制御ファイル
32.SH "説明"
da6ee469 33.PP
0e5943eb
JF
34The APT preferences file
35/etc/apt/preferences
36and the fragment files in the
37/etc/apt/preferences\&.d/
38folder can be used to control which versions of packages will be selected for installation\&.
da6ee469
JF
39.PP
40\fBsources.list\fR(5)
0e5943eb
JF
41ファイルに複数のディストリビューション (stable
42
da6ee469 43testing
0e5943eb
JF
44など) が指定されていて、パッケージに対し複数のバージョンがインストールできることがあります。このとき APT は、利用できるバージョンごとに優先度を割り当てます。依存関係規則を条件として、\fBapt\-get\fR
45は、最も高い優先度を持つバージョンをインストールするよう選択します。APT 設定ファイルは、APT がデフォルトで割り当てた、パッケージのバージョンの優先度を上書きします。その結果インストールするものの選択を、ユーザが選択できるようになります。
da6ee469
JF
46.PP
47\fBsources.list\fR(5)
0e5943eb
JF
48ファイルに複数の参照が書かれている場合、パッケージの同じバージョンのインスタンスが複数利用できる可能性があります。この場合、\fBapt\-get\fR
49
da6ee469 50\fBsources.list\fR(5)
0e5943eb 51ファイルの初めの方に指定されているところからダウンロードします。APT 設定ファイルはバージョンの選択にのみ影響し、インスタンスの選択には影響しません。
da6ee469 52.PP
0e5943eb
JF
53Note that the files in the
54/etc/apt/preferences\&.d
55directory are parsed in alphanumeric ascending order and need to obey the following naming convention: The files have no or "pref" as filename extension and which only contain alphanumeric, hyphen (\-), underscore (_) and period (\&.) characters \- otherwise they will be silently ignored\&.
56.SS "APT のデフォルト優先度の割り当て"
57.PP
58設定ファイルがなかったり、設定ファイルに特定のパッケージを割り当てるエントリがない場合、そのバージョンの優先度は、そのバージョンが属しているディストリビューションの優先度となります。デフォルトで他のディストリビューションより高い優先度を持つ、特定のディストリビューションを「ターゲットリリース」としておけます。後述する
59/etc/apt/preferences
60ファイルで設定した一般優先度よりもこれは優先されますが、pin 止めしたパッケージには及ばないことに注意してください。例えば以下のようになります。
da6ee469 61.sp
0e5943eb 62.if n \{\
00ec24d0 63.RS 4
0e5943eb 64.\}
da6ee469
JF
65.nf
66\fBapt\-get install \-t testing \fR\fB\fIsome\-package\fR\fR
67.fi
0e5943eb 68.if n \{\
da6ee469 69.RE
0e5943eb 70.\}
da6ee469
JF
71.sp
72
73.sp
0e5943eb 74.if n \{\
00ec24d0 75.RS 4
0e5943eb 76.\}
da6ee469
JF
77.nf
78APT::Default\-Release "stable";
79.fi
0e5943eb 80.if n \{\
da6ee469 81.RE
0e5943eb 82.\}
da6ee469 83.PP
0e5943eb
JF
84ターゲットリリースが指定されると、APT は以下のアルゴリズムで、パッケージのバージョンの優先度を設定します。以下のように割り当てます。.PP
85priority 100
00ec24d0 86.RS 4
0e5943eb 87(あるならば) 既にインストールされているバージョン。
da6ee469
JF
88.RE
89.PP
0e5943eb 90priority 500
00ec24d0 91.RS 4
0e5943eb 92インストールされておらず、ターゲットリリースに含まれないバージョン。
da6ee469
JF
93.RE
94.PP
0e5943eb 95priority 990
00ec24d0 96.RS 4
0e5943eb 97インストールされておらず、ターゲットリリースに含まれるバージョン。
da6ee469
JF
98.RE
99.PP
0e5943eb 100ターゲットリリースが指定されていなければ、APT は単純にインストールしているパッケージのバージョンには 100 を、インストールしていないパッケージのバージョンには 500 を割り当てます。
da6ee469 101.PP
0e5943eb 102APT は、インストールするパッケージのバージョンを決定するために、以下のルールを上から順番に適用します。
00ec24d0
JF
103.sp
104.RS 4
0e5943eb
JF
105.ie n \{\
106\h'-04'\(bu\h'+03'\c
107.\}
108.el \{\
109.sp -1
110.IP \(bu 2.3
111.\}
112有効なバージョンの優先度が 1000 を越えない場合、決してダウングレードしません。(「ダウングレード」は、現在のパッケージのバージョンよりも、小さいバージョンのものをインストールします。APT のデフォルト優先度が 1000 を越えないことに注意してください。そのような優先度は設定ファイルでのみ設定できます。また、パッケージのダウングレードは危険であることにも注意してください)
00ec24d0
JF
113.RE
114.sp
115.RS 4
0e5943eb
JF
116.ie n \{\
117\h'-04'\(bu\h'+03'\c
118.\}
119.el \{\
120.sp -1
121.IP \(bu 2.3
122.\}
123最も高い優先度のバージョンをインストールします。
00ec24d0
JF
124.RE
125.sp
126.RS 4
0e5943eb
JF
127.ie n \{\
128\h'-04'\(bu\h'+03'\c
129.\}
130.el \{\
131.sp -1
132.IP \(bu 2.3
133.\}
134同じ優先度のバージョンが複数存在する場合、最も新しいもの (最もバージョン番号が高いもの) をインストールします。
00ec24d0
JF
135.RE
136.sp
137.RS 4
0e5943eb
JF
138.ie n \{\
139\h'-04'\(bu\h'+03'\c
140.\}
141.el \{\
142.sp -1
143.IP \(bu 2.3
144.\}
145優先度・バージョン番号が同じものが複数存在し、そのパッケージのメタデータが異なるか
da6ee469 146\-\-reinstall
0e5943eb 147オプションが与えられている場合、インストールされていないものをインストールします。
da6ee469
JF
148.RE
149.PP
0e5943eb
JF
150よくある状況として、あるインストールされているパッケージのバージョン (優先度 100) が、\fBsources.list\fR(5)
151ファイルのリストから得られるバージョン (優先度 500 か 990) よりも新しくないということがあります。この場合、\fBapt\-get install \fR\fB\fIsome\-package\fR\fR
152
da6ee469 153\fBapt\-get upgrade\fR
0e5943eb 154を実行するとパッケージが更新されます。
da6ee469 155.PP
0e5943eb 156まれに、インストールされているパッケージのバージョンが、\fI他の有効なバージョンよりも\fR新しい場合があります。この時
da6ee469 157\fBapt\-get install \fR\fB\fIsome\-package\fR\fR
0e5943eb 158
da6ee469 159\fBapt\-get upgrade\fR
0e5943eb 160を実行しても、ダウングレードしません。
da6ee469 161.PP
0e5943eb 162時々、インストールしているパッケージのバージョンが、ターゲットリリースに属するバージョンよりも新しく、他のディストリビューションよりも古い場合があります。そのようなパッケージに対して
da6ee469 163\fBapt\-get install \fR\fB\fIsome\-package\fR\fR
0e5943eb 164
da6ee469 165\fBapt\-get upgrade\fR
0e5943eb
JF
166を実行すると、パッケージは更新されます。この場合、インストールされているバージョンよりも、少なくとも\fIひとつ\fRは、高い優先度を持つ有効なパッケージがあるからです。
167.SS "APT 設定の効果"
da6ee469 168.PP
0e5943eb 169APT 設定ファイルを使うと、システム管理者が優先度を割り当てられるようになります。ファイルは、空白行で区切られた、複数行からなるレコードで構成されています。レコードは特定形式か、汎用形式のどちらかの形式をとります。
00ec24d0
JF
170.sp
171.RS 4
0e5943eb
JF
172.ie n \{\
173\h'-04'\(bu\h'+03'\c
174.\}
175.el \{\
176.sp -1
177.IP \(bu 2.3
178.\}
179特定形式は、優先度 ("Pin\-Priority") を、指定したパッケージの指定したバージョン (範囲) について割り当てます。例えば以下のレコードは、"5\&.8" で始まる
180perl
181パッケージを、高い優先度に設定します。
da6ee469 182.sp
0e5943eb 183.if n \{\
00ec24d0 184.RS 4
0e5943eb 185.\}
da6ee469
JF
186.nf
187Package: perl
00ec24d0 188Pin: version 5\&.8*
da6ee469
JF
189Pin\-Priority: 1001
190.fi
0e5943eb 191.if n \{\
da6ee469 192.RE
0e5943eb 193.\}
00ec24d0
JF
194.RE
195.sp
196.RS 4
0e5943eb
JF
197.ie n \{\
198\h'-04'\(bu\h'+03'\c
199.\}
200.el \{\
201.sp -1
202.IP \(bu 2.3
203.\}
204汎用形式は、与えられたディストリビューションにある、すべてのパッケージ (Release
205ファイルに列挙したパッケージ) の優先度や、FQDNで指定した、特定のインターネットサイトから取得するパッケージの優先度を割り当てます。
da6ee469 206.sp
0e5943eb 207APT 設定ファイルに書かれている汎用形式のエントリは、パッケージのグループについてのみ適用されます。例えば以下のレコードは、ローカルサイトにある全パッケージについて、高い優先度を割り当てます。
da6ee469 208.sp
0e5943eb 209.if n \{\
00ec24d0 210.RS 4
0e5943eb 211.\}
da6ee469
JF
212.nf
213Package: *
214Pin: origin ""
215Pin\-Priority: 999
216.fi
0e5943eb 217.if n \{\
da6ee469 218.RE
0e5943eb 219.\}
da6ee469 220.sp
0e5943eb
JF
221注意: ここで使用しているキーワードは "origin" です。Release
222ファイルに指定されたような、ディストリビューションの Origin と混同しないようにしてください。Release
223ファイルにある "Origin:" タグは、インターネットアドレスではなく、"Debian" や "Ximian" といった作者やベンダ名です。
da6ee469 224.sp
0e5943eb 225以下のレコードは、アーカイブ名が "unstable" となっているディストリビューションに属するパッケージを、すべて低い優先度に割り当てます。
da6ee469 226.sp
0e5943eb 227.if n \{\
00ec24d0 228.RS 4
0e5943eb 229.\}
da6ee469
JF
230.nf
231Package: *
232Pin: release a=unstable
233Pin\-Priority: 50
234.fi
0e5943eb 235.if n \{\
da6ee469 236.RE
0e5943eb 237.\}
da6ee469 238.sp
0e5943eb 239以下のレコードは、コード名が "squeeze" となっているディストリビューションに属するパッケージを、すべて高い優先度に割り当てます。
da6ee469 240.sp
0e5943eb 241.if n \{\
00ec24d0 242.RS 4
0e5943eb
JF
243.\}
244.nf
245Package: *
246Pin: release n=squeeze
247Pin\-Priority: 900
248.fi
249.if n \{\
250.RE
251.\}
252.sp
253以下のレコードは、アーカイブ名が "stable" で、リリースバージョン番号が "3\&.0" となっているリリースに属するパッケージを、すべて高い優先度に割り当てます。
254.sp
255.if n \{\
256.RS 4
257.\}
da6ee469
JF
258.nf
259Package: *
00ec24d0 260Pin: release a=stable, v=3\&.0
da6ee469
JF
261Pin\-Priority: 500
262.fi
0e5943eb 263.if n \{\
da6ee469 264.RE
0e5943eb 265.\}
00ec24d0 266.RE
da6ee469 267.sp
0e5943eb 268.SS "APT が優先度に割り込む方法"
da6ee469 269.PP
0e5943eb 270APT 設定ファイルで割り当てた優先度 (P) は、正負の整数でなくてはなりません。これは (おおざっぱにいうと) 以下のように解釈されます。.PP
da6ee469 271P > 1000
00ec24d0 272.RS 4
0e5943eb 273パッケージがダウングレードしても、このバージョンのパッケージをインストール
da6ee469
JF
274.RE
275.PP
276990 < P <=1000
00ec24d0 277.RS 4
0e5943eb 278インストールされているバージョンの方が新しいことを除き、ターゲットリリースに含まれなくても、このバージョンのパッケージをインストール
da6ee469
JF
279.RE
280.PP
281500 < P <=990
00ec24d0 282.RS 4
0e5943eb 283ターゲットリリースに属するバージョンがあったり、インストールされているバージョンの方が新しいのでなければ、このバージョンのパッケージをインストール
da6ee469
JF
284.RE
285.PP
286100 < P <=500
00ec24d0 287.RS 4
0e5943eb 288他のディストリビューションに属するバージョンがあったり、インストールされているバージョンの方が新しいのでなければ、このバージョンのパッケージをインストール
da6ee469
JF
289.RE
290.PP
2910 < P <=100
00ec24d0 292.RS 4
0e5943eb 293このパッケージがインストールされていない場合、このバージョンのパッケージをインストール
da6ee469
JF
294.RE
295.PP
296P < 0
00ec24d0 297.RS 4
0e5943eb 298このバージョンのインストール禁止
da6ee469
JF
299.RE
300.PP
0e5943eb 301特定形式のレコードが利用可能パッケージバージョンに一致した場合、最初のレコードが、パッケージバージョンの優先度を決定します。失敗して、汎用形式のレコードが利用可能パッケージバージョンに一致した場合、最初のレコードが、パッケージバージョンの優先度を決定します。
da6ee469 302.PP
0e5943eb 303例えば、APT 設定ファイルの上の方に、以下のレコードが書かれていると仮定してください。
da6ee469 304.sp
0e5943eb 305.if n \{\
00ec24d0 306.RS 4
0e5943eb 307.\}
da6ee469
JF
308.nf
309Package: perl
00ec24d0 310Pin: version 5\&.8*
da6ee469
JF
311Pin\-Priority: 1001
312
313Package: *
314Pin: origin ""
315Pin\-Priority: 999
316
317Package: *
318Pin: release unstable
319Pin\-Priority: 50
320.fi
0e5943eb 321.if n \{\
da6ee469 322.RE
0e5943eb 323.\}
da6ee469 324.PP
0e5943eb 325すると、以下のように動作します。
00ec24d0
JF
326.sp
327.RS 4
0e5943eb
JF
328.ie n \{\
329\h'-04'\(bu\h'+03'\c
330.\}
331.el \{\
332.sp -1
333.IP \(bu 2.3
334.\}
335バージョン番号が "5\&.8" で始まっていれば、perl
336の最新の利用可能パッケージがインストールされます。バージョン 5\&.8* が利用可能で、バージョン 5\&.9* がインストールされている場合、perl
337はダウングレードされます。
00ec24d0
JF
338.RE
339.sp
340.RS 4
0e5943eb
JF
341.ie n \{\
342\h'-04'\(bu\h'+03'\c
343.\}
344.el \{\
345.sp -1
346.IP \(bu 2.3
347.\}
348ローカルシステムで有効な、perl
349以外のどんなパッケージでも、他のバージョンより (たとえターゲットリリースに属していても) 優先度が高くなります。
00ec24d0
JF
350.RE
351.sp
352.RS 4
0e5943eb
JF
353.ie n \{\
354\h'-04'\(bu\h'+03'\c
355.\}
356.el \{\
357.sp -1
358.IP \(bu 2.3
359.\}
360ローカルシステムにはなくても
da6ee469 361\fBsources.list\fR(5)
0e5943eb
JF
362に列挙されたサイトにあるバージョンで、unstable
363ディストリビューションに属しているパッケージは、インストールするよう選択され、既にインストールされているバージョンがない場合にのみインストールされます。
00ec24d0 364.RE
da6ee469 365.sp
0e5943eb 366.SS "パッケージのバージョンとディストリビューションプロパティの決定"
da6ee469
JF
367.PP
368\fBsources.list\fR(5)
0e5943eb
JF
369ファイルに列挙した場所では、その場所で利用できるパッケージを記述した、Packages
370ファイルや
371Release
372ファイルを提供します。
da6ee469 373.PP
0e5943eb
JF
374Packages
375ファイルは通常
376\&.\&.\&./dists/\fIdist\-name\fR/\fIcomponent\fR/\fIarch\fR
377ディレクトリにあります。例えば、\&.\&.\&./dists/stable/main/binary\-i386/Packages
378です。これは、ディレクトリにある利用可能パッケージごとに、複数行のレコードからできています。APT 優先度の設定は、レコードごとに以下の 2 行だけです。.PP
379Package: 行
00ec24d0 380.RS 4
0e5943eb 381パッケージ名
da6ee469
JF
382.RE
383.PP
0e5943eb 384Version: 行
00ec24d0 385.RS 4
0e5943eb 386その名前のパッケージのバージョン番号
da6ee469
JF
387.RE
388.PP
0e5943eb
JF
389The
390Release
391file is normally found in the directory
392\&.\&.\&./dists/\fIdist\-name\fR: for example,
393\&.\&.\&./dists/stable/Release, or
394\&.\&.\&./dists/woody/Release\&. It consists of a single multi\-line record which applies to
395\fIall\fR
396of the packages in the directory tree below its parent\&. Unlike the
397Packages
398file, nearly all of the lines in a
399Release
400file are relevant for setting APT priorities:
da6ee469 401.PP
0e5943eb 402Archive: 行や Suite: 行
00ec24d0 403.RS 4
0e5943eb
JF
404names the archive to which all the packages in the directory tree belong\&. For example, the line "Archive: stable" or "Suite: stable" specifies that all of the packages in the directory tree below the parent of the
405Release
406file are in a
da6ee469 407stable
0e5943eb 408archive\&. Specifying this value in the APT preferences file would require the line:
da6ee469 409.sp
0e5943eb 410.if n \{\
00ec24d0 411.RS 4
0e5943eb 412.\}
da6ee469
JF
413.nf
414Pin: release a=stable
415.fi
0e5943eb
JF
416.if n \{\
417.RE
418.\}
419.RE
420.PP
421Codename: 行
422.RS 4
423names the codename to which all the packages in the directory tree belong\&. For example, the line "Codename: squeeze" specifies that all of the packages in the directory tree below the parent of the
424Release
425file belong to a version named
426squeeze\&. Specifying this value in the APT preferences file would require the line:
427.sp
428.if n \{\
429.RS 4
430.\}
431.nf
432Pin: release n=squeeze
433.fi
434.if n \{\
da6ee469 435.RE
0e5943eb 436.\}
da6ee469
JF
437.RE
438.PP
0e5943eb 439Version: 行
00ec24d0 440.RS 4
0e5943eb 441リリースバージョン名です。例えば、このツリーのパッケージが、GNU/Linux リリースバージョン 3\&.0 に属するとします。通常
da6ee469 442testing
0e5943eb 443ディストリビューションや
da6ee469 444unstable
0e5943eb 445ディストリビューションには、まだリリースされていないので、バージョン番号が付きません。APT 設定ファイルでこれを指定するには、以下の行のいずれかが必要になります。
da6ee469 446.sp
0e5943eb 447.if n \{\
00ec24d0 448.RS 4
0e5943eb 449.\}
da6ee469 450.nf
00ec24d0
JF
451Pin: release v=3\&.0
452Pin: release a=stable, v=3\&.0
453Pin: release 3\&.0
da6ee469 454.fi
0e5943eb 455.if n \{\
da6ee469 456.RE
0e5943eb 457.\}
da6ee469
JF
458.RE
459.PP
0e5943eb 460Component: 行
00ec24d0 461.RS 4
0e5943eb
JF
462Release
463ファイルの、ディレクトリツリーにあるパッケージのライセンスコンポーネント名です。例えば、"Component: main" という行は、このディレクトリ以下の全ファイルが、main
464コンポーネント (Debian フリーソフトウェアガイドラインの元でライセンスされている) であることを表します。APT 設定ファイルでこのコンポーネントを指定するには、以下の行が必要になります。
da6ee469 465.sp
0e5943eb 466.if n \{\
00ec24d0 467.RS 4
0e5943eb 468.\}
da6ee469
JF
469.nf
470Pin: release c=main
471.fi
0e5943eb 472.if n \{\
da6ee469 473.RE
0e5943eb 474.\}
da6ee469
JF
475.RE
476.PP
0e5943eb 477Origin: 行
00ec24d0 478.RS 4
0e5943eb
JF
479Release
480ファイルのディレクトリツリーにあるパッケージの提供者名です。ほとんど共通で、Debian
481です。APT 設定ファイルでこの提供者を指定するには、以下の行が必要になります。
da6ee469 482.sp
0e5943eb 483.if n \{\
00ec24d0 484.RS 4
0e5943eb 485.\}
da6ee469
JF
486.nf
487Pin: release o=Debian
488.fi
0e5943eb 489.if n \{\
da6ee469 490.RE
0e5943eb 491.\}
da6ee469
JF
492.RE
493.PP
0e5943eb 494Label: 行
00ec24d0 495.RS 4
0e5943eb
JF
496Release
497ファイルのディレクトリツリーにあるパッケージのラベル名です。ほとんど共通で
da6ee469 498Debian
0e5943eb 499です。APT 設定ファイルでこのラベルを指定するには、以下の行が必要になります。
da6ee469 500.sp
0e5943eb 501.if n \{\
00ec24d0 502.RS 4
0e5943eb 503.\}
da6ee469
JF
504.nf
505Pin: release l=Debian
506.fi
0e5943eb 507.if n \{\
da6ee469 508.RE
0e5943eb 509.\}
da6ee469
JF
510.RE
511.PP
512\fBsources.list\fR(5)
0e5943eb
JF
513ファイルに列挙された場所から取得した
514Packages
515ファイルや
516Release
517ファイルはすべて、/var/lib/apt/lists
518ディレクトリや、apt\&.conf
519ファイルの
da6ee469 520Dir::State::Lists
0e5943eb
JF
521変数で指定した場所に取得されます。例えば、debian\&.lcs\&.mit\&.edu_debian_dists_unstable_contrib_binary\-i386_Release
522ファイルは、debian\&.lcs\&.mit\&.edu
523から取得した、unstable
524ディストリビューションで、contrib
525コンポーネントな、binary\-i386
526アーキテクチャ用の
527Release
528ファイルを含んでいます。
529.SS "APT 設定レコードのオプション行"
530.PP
531APT 設定ファイルのレコードごとに、任意で
da6ee469 532Explanation:
0e5943eb 533で始まる行を持てます。これは、コメント用の場所を確保します。
da6ee469 534.PP
0e5943eb 535The
da6ee469 536Pin\-Priority:
0e5943eb
JF
537line in each APT preferences record is optional\&. If omitted, APT assigns a priority of 1 less than the last value specified on a line beginning with
538Pin\-Priority: release \&.\&.\&.\&.
539.SH "サンプル"
540.SS "安定版の追跡"
da6ee469 541.PP
0e5943eb
JF
542The following APT preferences file will cause APT to assign a priority higher than the default (500) to all package versions belonging to a
543stable
544distribution and a prohibitively low priority to package versions belonging to other
da6ee469 545Debian
0e5943eb 546distributions\&.
da6ee469 547.sp
0e5943eb 548.if n \{\
00ec24d0 549.RS 4
0e5943eb 550.\}
da6ee469
JF
551.nf
552Explanation: Uninstall or do not install any Debian\-originated
553Explanation: package versions other than those in the stable distro
554Package: *
555Pin: release a=stable
556Pin\-Priority: 900
557
558Package: *
559Pin: release o=Debian
560Pin\-Priority: \-10
561.fi
0e5943eb 562.if n \{\
da6ee469 563.RE
0e5943eb 564.\}
da6ee469 565.PP
0e5943eb 566With a suitable
da6ee469 567\fBsources.list\fR(5)
0e5943eb 568file and the above preferences file, any of the following commands will cause APT to upgrade to the latest
da6ee469 569stable
0e5943eb 570version(s)\&.
da6ee469 571.sp
0e5943eb 572.if n \{\
00ec24d0 573.RS 4
0e5943eb 574.\}
da6ee469
JF
575.nf
576apt\-get install \fIpackage\-name\fR
577apt\-get upgrade
578apt\-get dist\-upgrade
579.fi
0e5943eb 580.if n \{\
da6ee469 581.RE
0e5943eb 582.\}
da6ee469 583.PP
0e5943eb 584The following command will cause APT to upgrade the specified package to the latest version from the
da6ee469 585testing
0e5943eb 586distribution; the package will not be upgraded again unless this command is given again\&.
da6ee469 587.sp
0e5943eb 588.if n \{\
00ec24d0 589.RS 4
0e5943eb 590.\}
da6ee469
JF
591.nf
592apt\-get install \fIpackage\fR/testing
593.fi
0e5943eb 594.if n \{\
da6ee469 595.RE
0e5943eb 596.\}
da6ee469 597.sp
0e5943eb 598.SS "テスト版や不安定版の追跡"
da6ee469 599.PP
0e5943eb
JF
600The following APT preferences file will cause APT to assign a high priority to package versions from the
601testing
602distribution, a lower priority to package versions from the
da6ee469 603unstable
0e5943eb 604distribution, and a prohibitively low priority to package versions from other
da6ee469 605Debian
0e5943eb 606distributions\&.
da6ee469 607.sp
0e5943eb 608.if n \{\
00ec24d0 609.RS 4
0e5943eb 610.\}
da6ee469
JF
611.nf
612Package: *
613Pin: release a=testing
614Pin\-Priority: 900
615
616Package: *
617Pin: release a=unstable
618Pin\-Priority: 800
619
620Package: *
621Pin: release o=Debian
622Pin\-Priority: \-10
623.fi
0e5943eb 624.if n \{\
da6ee469 625.RE
0e5943eb 626.\}
da6ee469 627.PP
0e5943eb 628With a suitable
da6ee469 629\fBsources.list\fR(5)
0e5943eb 630file and the above preferences file, any of the following commands will cause APT to upgrade to the latest
da6ee469 631testing
0e5943eb 632version(s)\&.
da6ee469 633.sp
0e5943eb 634.if n \{\
00ec24d0 635.RS 4
0e5943eb 636.\}
da6ee469
JF
637.nf
638apt\-get install \fIpackage\-name\fR
639apt\-get upgrade
640apt\-get dist\-upgrade
641.fi
0e5943eb 642.if n \{\
da6ee469 643.RE
0e5943eb 644.\}
da6ee469 645.PP
0e5943eb 646The following command will cause APT to upgrade the specified package to the latest version from the
da6ee469 647unstable
0e5943eb
JF
648distribution\&. Thereafter,
649\fBapt\-get upgrade\fR
650will upgrade the package to the most recent
da6ee469 651testing
0e5943eb 652version if that is more recent than the installed version, otherwise, to the most recent
da6ee469 653unstable
0e5943eb 654version if that is more recent than the installed version\&.
da6ee469 655.sp
0e5943eb 656.if n \{\
00ec24d0 657.RS 4
0e5943eb 658.\}
da6ee469
JF
659.nf
660apt\-get install \fIpackage\fR/unstable
661.fi
0e5943eb 662.if n \{\
da6ee469 663.RE
0e5943eb 664.\}
da6ee469 665.sp
0e5943eb
JF
666.SS "Tracking the evolution of a codename release"
667.PP
668The following APT preferences file will cause APT to assign a priority higher than the default (500) to all package versions belonging to a specified codename of a distribution and a prohibitively low priority to package versions belonging to other
669Debian
670distributions, codenames and archives\&. Note that with this APT preference APT will follow the migration of a release from the archive
671testing
672to
673stable
674and later
675oldstable\&. If you want to follow for example the progress in
676testing
677notwithstanding the codename changes you should use the example configurations above\&.
678.sp
679.if n \{\
680.RS 4
681.\}
682.nf
683Explanation: Uninstall or do not install any Debian\-originated package versions
684Explanation: other than those in the distribution codenamed with squeeze or sid
685Package: *
686Pin: release n=squeeze
687Pin\-Priority: 900
688
689Explanation: Debian unstable is always codenamed with sid
690Package: *
691Pin: release a=sid
692Pin\-Priority: 800
693
694Package: *
695Pin: release o=Debian
696Pin\-Priority: \-10
697.fi
698.if n \{\
699.RE
700.\}
701.PP
702With a suitable
703\fBsources.list\fR(5)
704file and the above preferences file, any of the following commands will cause APT to upgrade to the latest version(s) in the release codenamed with
705squeeze\&.
706.sp
707.if n \{\
708.RS 4
709.\}
710.nf
711apt\-get install \fIpackage\-name\fR
712apt\-get upgrade
713apt\-get dist\-upgrade
714.fi
715.if n \{\
716.RE
717.\}
718.PP
719The following command will cause APT to upgrade the specified package to the latest version from the
720sid
721distribution\&. Thereafter,
722\fBapt\-get upgrade\fR
723will upgrade the package to the most recent
724squeeze
725version if that is more recent than the installed version, otherwise, to the most recent
726sid
727version if that is more recent than the installed version\&.
728.sp
729.if n \{\
730.RS 4
731.\}
732.nf
733apt\-get install \fIpackage\fR/sid
734.fi
735.if n \{\
736.RE
737.\}
738.sp
739.SH "ファイル"
740.PP
741/etc/apt/preferences
742.RS 4
743Version preferences file\&. This is where you would specify "pinning", i\&.e\&. a preference to get certain packages from a separate source or from a different version of a distribution\&. Configuration Item:
744Dir::Etc::Preferences\&.
745.RE
746.PP
747/etc/apt/preferences\&.d/
748.RS 4
749File fragments for the version preferences\&. Configuration Item:
750Dir::Etc::PreferencesParts\&.
751.RE
752.SH "関連項目"
da6ee469 753.PP
00ec24d0
JF
754\fBapt-get\fR(8)
755\fBapt-cache\fR(8)
da6ee469
JF
756\fBapt.conf\fR(5)
757\fBsources.list\fR(5)
0e5943eb 758.SH "バグ"
da6ee469 759.PP
0e5943eb
JF
760\m[blue]\fBAPT バグページ\fR\m[]\&\s-2\u[1]\d\s+2
761をご覧ください。 APT のバグを報告する場合は、
762/usr/share/doc/debian/bug\-reporting\&.txt
763
da6ee469 764\fBreportbug\fR(1)
0e5943eb
JF
765コマンドをご覧ください。
766.SH "訳者"
767.PP
768倉澤 望
769nabetaro@debian\&.or\&.jp
770(2003\-2006,2009), Debian JP Documentation ML
771debian\-doc@debian\&.or\&.jp
da6ee469 772.PP
0e5943eb 773Note 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\&.
da6ee469
JF
774.SH "AUTHOR"
775.PP
776\fBAPT team\fR
0e5943eb
JF
777.RS 4
778.RE
00ec24d0
JF
779.SH "NOTES"
780.IP " 1." 4
0e5943eb 781APT バグページ
00ec24d0 782.RS 4
da6ee469 783\%http://bugs.debian.org/src:apt
00ec24d0 784.RE