[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[draft1] update-alternatives.8



中野@成蹊大です。

 とりあえずざっと日本語付けてみました。
叩いてくださいませ。

.\" update-alternatives.8
.\" This man page is copyright 1997 Charles Briscoe-Smith
.\" This is free documentation; you can redistribute it and/or modify
.\" it under the terms of the GNU General Public License as published
.\" by the Free Software Foundation; either version 2 of the License, or
.\" (at your option) any later version.  There is NO WARRANTY.  You can
.\" find the GNU GPL in /usr/share/common-licenses/GPL on any Debian system.
.TH UPDATE-ALTERNATIVES 8 "19 January 1998" "DEBIAN" "Debian GNU/Linux"
.\"O .SH NAME
.\"O update-alternatives \- maintain symbolic links determining default commands
.SH 名前
update-alternatives \- シンボリックリンクを管理してデフォルトのコマンドを決定する
.\"nakano: 原文は因果が逆だけど、日本語ではこっちでいいでしょう。
.\"O .SH SYNOPSIS
.SH 書式
.B update-alternatives
.RI [ options ]
.B --install
.I link name path priority
.RB [ --slave
.I link name
.IR path ]...
.PP
.B update-alternatives
.RI [ options ]
.B --remove
.I name path
.PP
.B update-alternatives
.RI [ options ]
.B --auto
.I name
.PP
.B update-alternatives
.RI [ options ]
.B --display
.I name
.PP
.B update-alternatives
.RI [ options ]
.B --config
.I name
.\"O .SH DESCRIPTION
.SH 説明
.\"O .B update-alternatives
.\"O creates, removes, maintains and displays information about the symbolic
.\"O links comprising the Debian alternatives system.
.B update-alternatives
は Debian の alternatives システムを成すシンボリックリンクを
生成・削除・管理したり、リンクの情報を表示したりする。
.PP
.\"O It is possible for several programs fulfilling the same or similar
.\"O functions to be installed on a single system at the same time.
.\"O For example, many systems have several text editors installed at once.
.\"O This gives choice to the users of a system, allowing each to use a
.\"O different editor, if desired, but makes it difficult for a program
.\"O to make a good choice of editor to invoke if the
.\"O user has not specified a particular preference.
同じ機能を (あるいは似たような機能を) 持つ複数のプログラムを
一つのシステムにインストールし、共存させることができる。
例えば多くのシステムでは、複数のテキストエディタが共存している。
これにより、システムのユーザは好みに応じて別々のエディタを
使うことができるようになる。
しかしプログラムにとっては、
特に指定がなかったときにどのエディタを起動すれば良いのかという、
なかなか難しい問題を抱えることになる。
.PP
.\"O Debian's alternatives system aims to solve this problem.
.\"O A generic name in the filesystem is
.\"O shared by all files providing interchangeable functionality.
.\"O The alternatives system and the system administrator
.\"O together determine which actual file is referenced by this generic name.
.\"O For example, if the text editors
.\"O .BR ed (1)
.\"O and
.\"O .BR nvi (1)
.\"O are both installed on the system, the alternatives system will cause
.\"O the generic name
.\"O .I /usr/bin/editor
.\"O to refer to
.\"O .I /usr/bin/nvi
.\"O by default.  The system administrator can override this and cause
.\"O it
.\"O to refer to
.\"O .I /usr/bin/ed
.\"O instead,
.\"O and the alternatives system will not alter this setting until explicitly
.\"O requested to do so.
Debian の alternatives システムは、この問題を解決するためのものである。
ファイルシステム中の generic name が、
同じ機能を提供できる交換可能な全てのファイルによって共有される。
その generic name が実際にどのファイルを参照するかは、
alternatives システムとシステム管理者とが決定する。
例えば、テキストエディタである
.BR ed (1)
と
.BR nvi (1)
の両者がシステムにインストールされていたとすると、
generic name である
.I /usr/bin/editor
は、デフォルトでは
.I /usr/bin/nvi
を参照する。システム管理者はこれを上書きし、
.I /usr/bin/ed
を参照させるようにすることもできる。こうすると、
その後明示的なリクエストがなければ、
alternatives システムはその設定を変更しない。
.PP
.\"O The generic name is not a direct symbolic link to the selected alternative.
.\"O Instead, it is a symbolic link to a name in the
.\"O .I alternatives
.\"O .IR directory ,
.\"O which in turn is a symbolic link to the actual file referenced.
.\"O This is done so that the system administrator's changes can be confined
.\"O within the
.\"O .I /etc
.\"O directory: the FSSTND (q.v.) gives reasons why this is a Good Thing.
generic name は、選ばれた alternative への直接のシンボリックリンクではなく、
.I alternatives
ディレクトリにある名前へのシンボリックリンクになっている。
そしてその名前が実際に参照されるファイルへのシンボリックリンクになっている。
こうなっている理由は、システム管理者の変更が
.I /etc
ディレクトリ以下で行われるようにするためである。
なぜこうするのが良いかについては FSSTND (q.v.) に説明がある。
.\"nakano: q.v. って?
.PP
.\"O When each package
.\"O providing a file with a particular functionality is
.\"O installed, changed or removed,
.\"O .B update-alternatives
.\"O is called to update information about that file in the alternatives system.
.\"O .B update-alternatives
.\"O is usually called from the
.\"O .B postinst
.\"O or
.\"O .B prerm
.\"O scripts in Debian packages.
特定の機能を提供する各パッケージがインストール・変更・削除されると、
.B update-alternatives
が呼ばれ、そのファイルに対する alternatives システムの内部情報を更新する。
.B update-alternatives
は、通常 Debian パッケージの
.B postinst
または
.B prerm
スクリプトから呼び出される。
.PP
.\"O It is often useful for a number of alternatives to be synchronised,
.\"O so that they are changed as a group; for example, when several versions
.\"O of the
.\"O .BR vi (1)
.\"O editor are installed, the man page referenced by
.\"O .I /usr/man/man1/vi.1
.\"O should correspond to the executable referenced by
.\"O .IR /usr/bin/vi .
.\"O .B update-alternatives
.\"O handles this by means of
.\"O .I master
.\"O and
.\"O .I slave
.\"O links; when the master is changed, any associated slaves are changed
.\"O too.
.\"O A master link and its associated slaves make up a
.\"O .I link
.\"O .IR group .
複数の alternative を同期させ、グループとして変更すると便利なことが多い。
例えば
.BR vi (1)
エディタのいろいろな派生システムが同時にインストールされていたとすると、
.I /usr/man/man1/vi.1
が参照する man ページは、
.I /usr/bin/vi
が参照する実行ファイルに対応しているべきであろう。
.B update-alternatives
は、
.I master
リンクと
.I slave
リンクによってこれを取り扱う。
master が変更されると、それに関連づけされた各 slave も同時に変更される。
master リンクとそれに関連づけされた slave とは、
.I "リンクグループ"
を形成する。
.PP
.\"O Each link group is, at any given time,
.\"O in one of two modes: automatic or manual.
.\"O When a group is in automatic mode, the alternatives system will
.\"O automatically decide, as packages are installed and removed,
.\"O whether and how to update the links.
.\"O In manual mode, the alternatives system will not change the links;
.\"O it will leave all the decisions to the system administrator.
各リンクグループは、いかなる時点においても、
automatic または manual の 2 つのモードのいずれかにある。
グループが automatic モードにある場合は、
パッケージのインストール・削除の際に
リンクを更新するかどうか/どのように更新するかは、
alternatives システムが自動的に決定する。
manual モードでは、
alternatives システムはリンクを変更しない。
システム管理者が行った決定がずっと保存される。
.PP
.\"O Link groups are in automatic mode when they are first introduced to
.\"O the system.
.\"O If the system administrator makes changes to the system's
.\"O automatic settings,
.\"O this will be noticed the next time
.\"O .B update-alternatives
.\"O is run on the changed link's group,
.\"O and the group will automatically be switched to manual mode.
リンクグループは、システムに導入されると、まず automatic モードになる。
システム管理者がシステムの自動設定を変更すると、次に
.B update-alternatives
がそのリンクグループに対して実行されたときにその変更が認識され、
そのリンクグループは自動的に manual モードになる。
.\"nakano: くどい日本語...(^^;
.PP
.\"O Each alternative has a
.\"O .I priority
.\"O associated with it.
.\"O When a link group is in automatic mode,
.\"O the alternatives pointed to by members of the group
.\"O will be those which have the highest priority.
各 alternative は
.I priority
を持っている。リンクグループが automatic モードにあるときは、
そのグループのメンバーが参照する alternative は、
priority のもっとも高いものになる。
.PP
.\"O When using the
.\"O .I --config
.\"O option, update-alternatives will list all of the choices for the given
.\"O alternative. You will then be prompted for which of the choices to use
.\"O for the alternative. Once you make a change, the alternative will no
.\"O longer be in
.\"O .I auto
.\"O mode. You will need to use the
.\"O .I --auto
.\"O option in order to return to the automatic state.
.I --config
オプションを用いると、
.B update-alternatives
は与えられた generic name に対する選択肢をすべてリストする。
そしてその generic name にどれを対応させるかを問合わせるプロンプトが表示される。
ここで変更を行うと、その generic name は
.I auto
モードではなくなる。 automatic 状態に戻すには、
.I --auto
オプションを用いる必要がある。
.\"nakano: ここでは (alternative → generic name) ですよね?
.\"O .SH TERMINOLOGY
.SH 用語
.\"O Since the activities of
.\"O .B update-alternatives
.\"O are quite involved, some specific terms will help to explain its
.\"O operation.
.B update-alternatives
の動作は極めて複雑なので、ここでいくつか特殊な用語を説明し、
動作の理解の助けとしたい。
.TP
generic name
.\"O A name, like
.\"O .IR /usr/bin/editor ,
.\"O which refers, via the alternatives system, to one of a number of
.\"O files of similar function.
.I /usr/bin/editor
のような名前。 alternatives システムによって
同様の機能を持つ複数のファイルのどれかひとつを参照する。
.TP
symlink
.\"O Without any further qualification, this means a symbolic link in the
.\"O alternatives directory: one which the system administrator is expected
.\"O to adjust.
特に他に指定がなければ、これは alternatives ディレクトリ内の
シンボリックリンクを意味する。システム管理者が調整の対象とするものである。
.TP
alternative
.\"O The name of a specific file in the filesystem, which may be made
.\"O accessible via a generic name using the alternatives system.
ファイルシステム中の特定のファイル。
alternatives システムによって、
generic name からアクセスされるようにできる。
.TP
.\"O alternatives directory
alternatives ディレクトリ
.\"O A directory, by default
.\"O .IR /etc/alternatives ,
.\"O containing the symlinks.
symlink を保持するディレクトリ。デフォルトでは
.IR /etc/alternatives 。
.TP
.\"O administrative directory
administrative ディレクトリ
.\"O A directory, by default
.\"O .IR /var/lib/dpkg/alternatives ,
.\"O containing
.\"O .BR update-alternatives '
.\"O state information.
.B update-alternatives
の状態情報を保持するディレクトリ。デフォルトでは
.IR /var/lib/dpkg/alternatives 。
.TP
.\"O link group
リンクグループ
.\"O A set of related symlinks, intended to be updated as a group.
関連する symlink のセット。グループごと更新するためのもの。
.TP
.\"O master link
master リンク
.\"O The link in a link group which determines how the other links in the
.\"O group are configured.
リンクグループに属するリンクで、
グループの他のリンクの設定を決定するもの。
.TP
.\"O slave link
slave リンク
.\"O A link in a link group which is controlled by the setting of
.\"O the master link.
リンクグループに属するリンクで、
master リンクの設定によって制御されるもの。
.TP
.\"O automatic mode
automatic モード
.\"O When a link group is in automatic mode,
.\"O the alternatives system ensures that the links in the group
.\"O point to the highest priority alternatives
.\"O appropriate for the group.
リンクグループが automatic モードにあるときは、
alternatives システムがグループを制御する。
そのグループに対応するもので、
かつもっとも高い priority を持つ alternative 
をグループ内の各リンクが参照するようにする。
.TP
.\"O manual mode
manual モード
.\"O When a link group is in manual mode,
.\"O the alternatives system will not make any changes
.\"O to the system administrator's settings.
リンクグループが manual モードにあるときは、
alternatives システムはシステム管理者の設定を一切変更しない。
.\"O .SH OPTIONS
.SH オプション
.\"O Exactly one action must be specified if
.\"O .B update-alternatives
.\"O is to perform any meaningful task.
.\"O Any number of the common options may be specified together with any action.
.B update-alternatives
に何らかの意味のある仕事をさせるには、
アクションを 1 つだけ指定しなければならない。
共通オプションは、どのアクションともいっしょに、いくつでも指定してかまわない。
.\"O .SS "COMMON OPTIONS"
.SS 共通オプション
.TP
.B --verbose
.\"O Generate more comments about what
.\"O .B update-alternatives
.\"O is doing.
.B update-alternatives
が行っている作業に付いて、より詳細なコメントを生成する。
.TP
.B --quiet
.\"O Don't generate any comments unless errors occur.
.\"O This option is not yet implemented.
エラー以外のコメントを出さない。
このオプションはまだ実装されていない。
.TP
.B --test
.\"O Don't actually do anything, just say what would be done.
.\"O This option is not yet implemented.
実際の作業は何もせず、行う予定の作業について表示する。
このオプションはまだ実装されていない。
.TP
.B --help
.\"O Give some usage information (and say which version of
.\"O .B update-alternatives
.\"O this is).
利用法に関する表示を行う
.RB ( update-alternatives
のバージョンも表示する)。
.TP
.B --version
.\"O Tell which version of
.\"O .B update-alternatives
.\"O this is (and give some usage information).
.R update-alternatives
のバージョンを表示する (利用法に関する表示を行う)。
.TP
\fB--altdir\fR \fIdirectory\fR
.\"O Specifies the alternatives directory, when this is to be
.\"O different from the default.
alternatives ディレクトリをデフォルトから変えたいときに指定する。
.TP
\fB--admindir\fR \fIdirectory\fR
.\"O Specifies the administrative directory, when this is to be
.\"O different from the default.
administrative ディレクトリをデフォルトから変えたいときに指定する。
.\"O .SS ACTIONS
.SS アクション
.TP
\fB--install\fR \fIlink gen path pri\fR [\fB--slave\fR \fIslink sgen spath\fR] ...
.\"O Add a group of alternatives to the system.
.\"O .I gen
.\"O is the generic name for the master link,
.\"O .I link
.\"O is the name of its symlink, and
.\"O .I path
.\"O is the alternative being introduced for the master link.
.\"O .IR sgen ,
.\"O .I slink
.\"O and
.\"O .I spath
.\"O are the generic name, symlink name and alternative
.\"O for a slave link.
.\"O Zero or more
.\"O .B --slave
.\"O options, each followed by three arguments,
.\"O may be specified.
alternative のグループをシステムに追加する。
.I gen
は master リンクの generic name であり、
.I link
はその symlink の名前であり、
.I path
は master リンクに対して導入される alternative である。
.IR sgen ", " slink ", " spath
は slave リンクの generic name, symlink, alternative である。
.B --slave
オプションと、それに続く 3 つの引数のセットを、
0 個以上いくつでも指定してよい。
.IP
.\"O If the master symlink specified exists already
.\"O in the alternatives system's records,
.\"O the information supplied will be added as a new
.\"O set of alternatives for the group.
.\"O Otherwise, a new group, set to automatic mode,
.\"O will be added with this information.
.\"O If the group is in automatic mode,
.\"O and the newly added alternatives' priority is higher than
.\"O any other installed alternatives for this group,
.\"O the symlinks will be updated to point to the newly added alternatives.
指定した master の symlink が既に
alternatives システムの記録に存在していると、
与えられた情報はそのグループに対する
新たな alternative のセットとして追加される。
グループが automatic モードにあり、
新たに追加された alternative の priority がそのグループに対して
インストールされている他の alternative のものより高いときには、
symlink は新たに追加された alternative を参照するように更新される。
.\"nakano: 複数形の扱いが...
.TP
\fB--remove\fR \fIlink path\fR
.\"O Remove an alternative and all of its associated slave links.
.\"O .I link
.\"O is a name in the alternatives directory, and
.\"O .I path
.\"O is an absolute filename to which
.\"O .I name
.\"O could be linked.  If
.\"O .I link
.\"O is indeed linked to
.\"O .IR path ,
.\"O .I link
.\"O will be updated to point to another appropriate alternative, or
.\"O removed if there is no such alternative left.
.\"O Associated slave links will be updated or removed, correspondingly.
.\"O If the link is not currently pointing to
.\"O .IR path ,
.\"O no links are changed;
.\"O only the information about the alternative is removed.
alternative とそれに関連する全ての slave リンクを削除する。
.I link
は alternatives ディレクトリ中の名前であり、
.I path
は
.I name
のリンク先にできる絶対パスでのファイル名である。
.I link
が実際に
.I path
にリンクされている場合には、
.I link
は他の適切な alternative を参照するよう更新される。
あるいはそのような alternative が残っていなければ削除される。
関連する slave リンクも対応して更新 (削除) される。
.I link
が現在その
.I path
を参照していなければ、リンクの変更は行われない。
その alternative の情報が削除されるだけである。
.TP
\fB--auto\fR \fIlink\fR
.\"O Switch the master symlink
.\"O .I link
.\"O to automatic mode.
.\"O In the process, this symlink and its slaves are updated
.\"O to point to the highest priority installed alternatives.
master の symlink
.I ink
を automatic モードに変更する。
この処理を行う際には、
この master リンクと対応する各 slave は、
現在インストールされている alterantive のうち、
もっとも priority の高いものを参照するように更新される。
.TP
\fB--display\fR \fIlink\fR
.\"O Display information about the link group of which
.\"O .I link
.\"O is the master link.
.\"O Information displayed includes the group's mode
.\"O (auto or manual),
.\"O which alternative the symlink currently points to,
.\"O what other alternatives are available
.\"O (and their corresponding slave alternatives),
.\"O and the highest priority alternative currently installed.
.I link
を master リンクとするリンクグループの情報を表示する。
表示される情報は、グループのモード (master か slave か)・
その symlink の現在の参照先・
他に alternatives (とそれに対応した slave altarnative)
があるかどうか・
現在インストールされている alternative のうち、
もっとも priority の高いもの、である。
.\"O .SH FILES
.SH ファイル
.TP
.I /etc/alternatives/
.\"O The default alternatives directory.
.\"O Can be overridden by the
.\"O .B --altdir
.\"O option.
デフォルトの alternatives ディレクトリ。
.B --altdir
オプションによって上書きできる。
.TP
.I /var/lib/dpkg/alternatives/
.\"O The default administration directory.
.\"O Can be overridden by the
.\"O .B --admindir
.\"O option.
デフォルトの administration ディレクトリ。
.B --admindir
オプションによって上書きできる。
.\"O .SH "EXIT STATUS"
.SH 終了ステータス
.IP 0
.\"O The requested action was successfully performed.
リクエストされたアクションが正しく実行された。
.IP 2
.\"O Problems were encountered whilst parsing the command line
.\"O or performing the action.
コマンドラインの解釈を行うときか、
アクションを実行するときに問題が起った。
.\"O .SH DIAGNOSTICS
.SH 診断メッセージ
.\"O .B update-alternatives
.\"O chatters incessantly about its activities on its standard output channel.
.\"O If problems occur,
.\"O .B update-alternatives
.\"O outputs error messages on its standard error channel and
.\"O returns an exit status of 2.
.\"O These diagnostics should be self-explanatory;
.\"O if you do not find them so, please report this as a bug.
.B update-alternatives
は、動作の最中に、いま何をやっているかを逐一標準出力にしゃべり続ける。
問題が起ると、
.B update-alternatives
はエラーメッセージを標準エラー出力に出力し、
終了ステータス 2 を返す。
これらの診断メッセージは、読めばわかるはずである。
もしわからなければ、バグとして報告して欲しい。
.\"O .SH BUGS
.SH バグ
.\"O If you find a bug, please report it using the Debian bug-tracking system,
.\"O or, if that is not possible, email the author directly.
バグを見つけたら、 Debian のバグ追跡システムを使ってレポートして欲しい。
もしそれが不可能なら、著者に直接電子メールで送って欲しい。
.PP
.\"O If you find any discrepancy between the operation of
.\"O .B update-alternatives
.\"O and this manual page, it is a bug,
.\"O either in the implementation or the documentation;
.\"O please report it.
もし
.B update-alternatives
の動作とこのマニュアルページの記述に矛盾があれば、それはバグである。
実装か文書のどちらかがおかしい。レポートをお願いします。
.\"O .SH AUTHOR
.SH 著者
Debian GNU/Linux update-alternatives is copyright 1995
Ian Jackson.  It is free software; see the GNU General Public Licence
version 2 or later for copying conditions.  There is NO warranty.
.PP
This manual page is copyright 1997/98 Charles Briscoe-Smith.
This is free documentation; see the GNU General Public Licence
version 2 or later for copying conditions.  There is NO WARRANTY.
.PP
You can find the GNU GPL in /usr/share/common-licenses/GPL on any Debian system.
.\" .SH ACKNOWLEDGEMENTS
.\"O .SH "SEE ALSO"
.SH 関連項目
.BR ln (1),
FSSTND, the linux Filesystem Standard.
.SH 日本語版翻訳
中野武雄 <nakano@xxxxxxxxxxxxxxxx>
.SH 翻訳者注
このマニュアルページは dpkg パッケージのバージョン 1.6.12.99 に付属の
.BR update-alternatives (8)
の日本語訳である。