Patool

patoolは、複数のアーカイブファイル・圧縮ファイルに対応したコマンドラインファイルアーカイバである。Pythonで書か�…

Patool
patool
開発元 Bastian Kleineidam[1]
最新版
4.0.0 / 2025年3月1日 (17か月前) (2025-03-01)[2]
リポジトリ ウィキデータを編集
プログラミング
言語
Python
対応OS クロスプラットフォーム
種別 コマンドラインファイルアーカイバ
ライセンス GNU GPL v3+
公式サイト patool
テンプレートを表示

patoolは、複数のアーカイブファイル圧縮ファイルに対応したコマンドラインファイルアーカイバである。Pythonで書かれており、GNU GPL v3+の下で配布されている。

概要

patoolはtargzipなどのフロントエンドであり、共通のUIでこれらのコマンドが扱うファイルフォーマットを操作することができ、ファイルフォーマットによって異なるコマンドやそのオプションを覚える手間を省くことができる[1][3]

アーカイブの展開 (patool extract)・アーカイブ内のファイルの一覧を表示 (patool list)・アーカイブの作成 (patool create)・アーカイブのテスト (patool test)・アーカイブの比較 (patool diff)・アーカイブ内のファイルの検索 (patool search)・アーカイブの再作成 (patool repack)・アーカイブの再圧縮 (patool recompress) を行うことができる[4]

ファイルフォーマットはfile拡張子によって判断され、ファイルフォーマットに対応するコマンドが実行される。それぞれのアーカイブを扱うには、対応するコマンドがインストールされている必要がある[注釈 1]

実行例

カレントディレクトリ以下のファイルとディレクトリをまとめて『foo.tar.xz』を作成
patool create foo.tar.xz *
『foo.tar.xz』を展開 (複数のファイルを含む場合、アーカイブと同名のサブディレクトリが作成され、その中に展開される)
patool extract foo.tar.xz
『bar.7z』内のファイルの一覧を表示
patool list bar.7z
『bar.7z』のファイルフォーマットを7zからZIPに変更して『bar.zip』を作成
patool repack bar.7z bar.zip

脚注

注釈

  1. ^ tar・ZIPbzip2・gzipはネイティブサポートされており、別途対応するアプリケーションをインストールする必要はない。

出典

  1. ^ a b patool - portable archive file manager”. 2018年9月28日閲覧。
  2. ^ Releases”. GitHub. 2025年3月21日閲覧。
  3. ^ patool”. Freecode. 2018年9月28日閲覧。
  4. ^ patool/patool.txt at master”. 2018年9月28日閲覧。

関連項目

外部リンク

Content Disclaimer

Informasi ini disarikan dari Wikipedia dan disajikan kembali untuk tujuan edukasi. Konten tersedia di bawah lisensi CC BY-SA 3.0. Kami tidak bertanggung jawab atas ketidakakuratan data yang bersumber dari kontribusi publik tersebut.

  1. The information displayed on this website is sourced in part or in whole from Wikipedia and has been adapted for the purpose of restating it. We strive to provide accurate and relevant information, however:
  2. There is no guarantee of absolute accuracy. Wikipedia is an open, collaborative project that can be edited by anyone, so information is subject to change.
  3. It is not intended to constitute professional advice. The content displayed is for informational and educational purposes only. For important decisions (e.g., medical, legal, or financial), please consult a professional.
  4. Content copyright. Wikipedia is licensed under the Creative Commons Attribution-ShareAlike License (CC BY-SA). This means that content may be reused with appropriate attribution and shared under a similar license.
  5. Responsible use. Any risk arising from the use of information from this website is entirely the responsibility of the user.