Provided by: dpkg-dev_1.17.5ubuntu5.8_all bug

名前

       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>.