Scroll to navigation

dpkg-name(1) dpkg ユーティリティ dpkg-name(1)

名前

dpkg-name - Debian パッケージを完全パッケージ名にリネーム

書式

dpkg-name [option...] [--] file...

説明

このマニュアルページでは、 dpkg-name シェルスクリプトについて説明する。これは、 Debian パッケージを完全パッケージ名に、簡単に変更する方法を提供する。完全パッケージ名とは、パッケージの control ファイルで指定された package_version_architecture.package-type という形式である。ファイル名の version 部分は、アップストリームのバージョン情報に続き、オプションでハイフンおよびリビジョン情報が続いたものである。 package-type 部分は、Package-Type フィールドが設定されていればその内容が用いられる。デフォルトは deb である。

オプション

-a, --no-architecture
リネーム後のファイル名にアーキテクチャ情報を含めない。
-k, --symlink
ファイル名のリネーム処理として、ファイルを移動する代わりにシンボリックリンクを作成する。
-o, --overwrite
リネーム後のファイル名と同名のファイルがあれば、上書きする。
-s, --subdir [dir]
リネームしたファイルをサブディレクトリに移動する。引数で指定されたディレクトリが存在する場合、パッケージの制御情報のセクションフィールドから得られたターゲットディレクトリの代わりにそのディレクトリにファイルを移動する。通常、ターゲットディレクトリは `unstable/binary- architecture/section' である。制御情報にこのセクションがない場合は `no-section' とみなされる。この場合、`non-free' や `contrib' セクションの時と同様にターゲットディレクトリは ` section/binary-architecture' となる。セクションフィールドは必須ではないため、多くのパッケージが `no-section' になってしまうだろう。このオプションは注意して使用すること。この機能は完成度が低いので、使う時は注意すること。
-c, --create-dir
This option can used together with the -s option. If a target directory isn't found it will be created automatically. Use this option with care.
-?, --help
利用方法を表示して終了する。
-v, --version
バージョン情報を表示して終了する。

バグ

Some packages don't follow the name structure package_version _architecture.deb. Packages renamed by dpkg-name will follow this structure. Generally this will have no impact on how packages are installed by dselect(1)/dpkg(1), but other installation tools might depend on this naming structure.

dpkg-name bar-foo.deb
ファイル `bar-foo.deb' が bar-foo_1.0-2_i386.deb のような名前にリネームされる (実際にどうなるかは `bar-foo.deb' の制御情報に依存する)。
find /root/debian/ -name '*.deb' | xargs -n 1 dpkg-name -a
All files with the extension `deb' in the directory /root/debian and its subdirectory's will be renamed by dpkg-name if required into names with no architecture information.
find -name '*.deb' | xargs -n 1 dpkg-name -a -o -s -c
やってはいけない! 多くのパッケージはセクション情報をもっていないので、アーカイブがぐちゃぐちゃになってしまうだろう。 やってはいけない!
dpkg-deb --build debian-tmp && dpkg-name -o -s .. debian-tmp.deb
これは新しいパッケージを作る時に使うことができる。

関連項目

deb(5), deb-control(5), dpkg(1), dpkg-deb(1), find(1), xargs(1).

翻訳者

高橋 基信 <monyo@monyo.com>. 喜瀬 浩 <kise@fuyuneko.jp>. 関戸 幸一 <sekido@mbox.kyoto-inet.or.jp>. 鍋谷 栄展 <nabe@debian.or.jp>. 倉澤 望 <nabetaro@debian.or.jp>. 石川 睦 <ishikawa@linux.or.jp>. 鵜飼 文敏 <ukai@debian.or.jp>. 中野 武雄 <nakano@apm.seikei.ac.jp>.

翻訳校正

Debian JP Documentation ML <debian-doc@debian.or.jp>.
2012-04-15 Debian Project