patool压缩和解压缩工具

联合创作 · 2023-09-29 16:19

patool 是一个压缩和解压缩工具,可对压缩包进行创建、解压、提取、测试、列表、搜索、比较和重新打包。支持的格式包括:7z (.7z), ACE (.ace), ADF (.adf), ALZIP (.alz), APE (.ape), AR (.a), ARC (.arc), ARJ (.arj), bzip2 (.bz2), CAB (.cab), COMPRESS (.Z), CPIO (.cpio), deb (.deb), DMS (.dms), FLAC (.flac), gzip (.gz), ISO (.iso), LRZIP (.lrz), LZH (.lha, .lzh), LZIP (.lz), LZMA (.lzma), LZOP (.lzo), RPM (.rpm), RAR (.rar), RZIP (.rz), SHN (.shn), tar (.tar), XZ (.xz), zip (.zip, .jar), and ZOO (.zoo) .

使用方法:

# extract two archives
patool extract archive.zip otherarchive.rar

# test if archive is intact
patool test --verbose dist.tar.gz

# list files inside an archive
patool list package.deb

# create a new archive
patool create --verbose myfiles.zip file1.txt dir/

# list differences between two archive contents
patool diff release1.0.tar.gz release2.0.zip

# search archive contents
patool search "def urlopen" python-3.3.tar.gz

# compress the archive in a different format
patool repack linux-2.6.33.tar.gz linux-2.6.33.tar.bz2
浏览 5
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报
评论
图片
表情
推荐
点赞
评论
收藏
分享

手机扫一扫分享

编辑 分享
举报