.\" dpkg manual page - dpkg-name(1) .\" .\" Copyright 息 1995-1996 Erick Branderhorst .\" Copyright 息 2007-2012 Guillem Jover .\" .\" This is free software; 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. .\" .\" This is distributed in the hope that it will be useful, .\" but WITHOUT ANY WARRANTY; without even the implied warranty of .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the .\" GNU General Public License for more details. .\" .\" You should have received a copy of the GNU General Public License .\" along with this program. If not, see . . .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH dpkg\-name 1 2012\-04\-15 "Debian Project" "dpkg ユーティリティ" .SH 名前 dpkg\-name \- Debian パッケージを完全パッケージ名にリネーム . .SH 書式 \fBdpkg\-name\fP [\fIoption\fP...] [\fB\-\-\fP] \fIfile\fP... . .SH 説明 .PP このマニュアルページでは、\fBdpkg\-name\fP シェルスクリプトについて説明する。これは、\fBDebian\fP パッケージを完全パッケージ名に、簡単に変更する方法を提供する。完全パッケージ名とは、パッケージの control ファイルで指定された \fIpackage\fP\fB_\fP\fIversion\fP\fB_\fP\fIarchitecture\fP\fB.\fP\fIpackage\-type\fP という形式である。ファイル名の \fIversion\fP 部分は、アップストリームのバージョン情報に続き、オプションでハイフンおよびリビジョン情報が続いたものである。\fIpackage\-type\fP 部分は、Package\-Type フィールドが設定されていればその内容が用いられる。デフォルトは \fBdeb\fP である。 . .SH オプション .TP \fB\-a\fP, \fB\-\-no\-architecture\fP リネーム後のファイル名にアーキテクチャ情報を含めない。 .TP \fB\-k\fP, \fB\-\-symlink\fP ファイル名のリネーム処理として、ファイルを移動する代わりにシンボリックリンクを作成する。 .TP \fB\-o\fP, \fB\-\-overwrite\fP リネーム後のファイル名と同名のファイルがあれば、上書きする。 .TP \fB\-s\fP, \fB\-\-subdir\fP [\fIdir\fP] リネームしたファイルをサブディレクトリに移動する。引数で指定されたディレクトリが存在する場合、パッケージの制御情報のセクションフィールドから得られたターゲットディレクトリの代わりにそのディレクトリにファイルを移動する。通常、ターゲットディレクトリは `unstable/binary\-\fIarchitecture\fP/\fIsection\fP' である。制御情報にこのセクションがない場合は `no\-section' とみなされる。この場合、`non\-free' や `contrib' セクションの時と同様にターゲットディレクトリは `\fIsection\fP/binary\-\fIarchitecture\fP' となる。セクションフィールドは必須ではないため、多くのパッケージが `no\-section' になってしまうだろう。このオプションは注意して使用すること。この機能は完成度が低いので、使う時は注意すること。 .TP \fB\-c\fP, \fB\-\-create\-dir\fP This option can used together with the \fB\-s\fP option. If a target directory isn't found it will be created automatically. \fBUse this option with care.\fP .TP \fB\-?\fP, \fB\-\-help\fP 利用方法を表示して終了する。 .TP \fB\-v\fP, \fB\-\-version\fP バージョン情報を表示して終了する。 . .SH バグ Some packages don't follow the name structure \fIpackage\fP\fB_\fP\fIversion\fP\fB_\fP\fIarchitecture\fP\fB.deb\fP. Packages renamed by \fBdpkg\-name\fP will follow this structure. Generally this will have no impact on how packages are installed by \fBdselect\fP(1)/\fBdpkg\fP(1), but other installation tools might depend on this naming structure. . .SH 例 .TP \fBdpkg\-name bar\-foo.deb\fP ファイル `bar\-foo.deb' が bar\-foo_1.0\-2_i386.deb のような名前にリネームされる (実際にどうなるかは `bar\-foo.deb' の制御情報に依存する)。 .TP \fBfind /root/debian/ \-name \(aq*.deb\(aq | xargs \-n 1 dpkg\-name \-a\fP All files with the extension `deb' in the directory /root/debian and its subdirectory's will be renamed by \fBdpkg\-name\fP if required into names with no architecture information. .TP \fBfind \-name \(aq*.deb\(aq | xargs \-n 1 dpkg\-name \-a \-o \-s \-c\fP \fBやってはいけない!\fP 多くのパッケージはセクション情報をもっていないので、アーカイブがぐちゃぐちゃになってしまうだろう。\fBやってはいけない!\fP .TP \fBdpkg\-deb \-\-build debian\-tmp && dpkg\-name \-o \-s .. debian\-tmp.deb\fP これは新しいパッケージを作る時に使うことができる。 . .SH 関連項目 \fBdeb\fP(5), \fBdeb\-control\fP(5), \fBdpkg\fP(1), \fBdpkg\-deb\fP(1), \fBfind\fP(1), \fBxargs\fP(1). .SH 翻訳者 高橋 基信 . 喜瀬 浩 . 関戸 幸一 . 鍋谷 栄展 . 倉澤 望 . 石川 睦 . 鵜飼 文敏 . 中野 武雄 . .SH 翻訳校正 Debian JP Documentation ML .