7zip和p7zip的分卷是否兼容?
dwing吧
全部回复
仅看楼主
level 7
xliang9550 楼主
就是问一下Windows和Linux平台下的7z分卷是否兼容。之前试过zip64好像不行……
2012年12月07日 08点12分 1
level 13
兼容,完全没有问题。zip本身不支持分卷,所谓的分卷只是不同软件自己实现的算法而已,并不通用。
7Z本身就支持分卷,这个已经测试,windows下用7-zip压缩的分卷在linux中用p7zip完全可以解压,过程如下。
[root@www ~]# 7za e 27\ -\ CHAOS\ LEGION\ DRAMA\ DIGEST\ \(Extended\ Piano\ Instrumental\).7z.001 7-Zip (A) [64] 9.20 Copyright (c) 1999-2010 Igor Pavlov 2010-11-18
p7zip Version 9.20 (locale=zh_CN.UTF-8,Utf16=on,HugeFiles=on,4 CPUs)
Processing archive: 27 - CHAOS LEGION DRAMA DIGEST (Extended Piano Instrumental).7z.001 Extracting 27 - CHAOS LEGION DRAMA DIGEST (Extended Piano Instrumental).mp3
Everything is Ok
Size: 6516736
Compressed: 1048576
[root@www ~]# ll
总用量 20300
-rw-r--r--. 1 root root 1048576 12月 8 09:57 27 - CHAOS LEGION DRAMA DIGEST (Extended Piano Instrumental).7z.001
-rw-r--r--. 1 root root 1048576 12月 8 09:57 27 - CHAOS LEGION DRAMA DIGEST (Extended Piano Instrumental).7z.002
-rw-r--r--. 1 root root 1048576 12月 8 09:57 27 - CHAOS LEGION DRAMA DIGEST (Extended Piano Instrumental).7z.003
-rw-r--r--. 1 root root 1048576 12月 8 09:57 27 - CHAOS LEGION DRAMA DIGEST (Extended Piano Instrumental).7z.004
-rw-r--r--. 1 root root 1048576 12月 8 09:57 27 - CHAOS LEGION DRAMA DIGEST (Ext
ended Piano Instrumental).7z.005
-rw-r--r--. 1 root root 1048576 12月 8 09:57 27 - CHAOS LEGION DRAMA DIGEST (Extended Piano Instrumental).7z.006
-rw-r--r--. 1 root root 188554 12月 8 09:57 27 - CHAOS LEGION DRAMA DIGEST (Extended Piano Instrumental).7z.007
-rw-r--r--. 1 root root 6516736 10月 28 18:51 27 - CHAOS LEGION DRAMA DIGEST (Extended Piano Instrumental).mp3
-rw-------. 1 root root 1063 11月 13 06:55 anaconda-ks.cfg
-rwxr--r--. 1 root root 785724 11月 13 07:52 apr-1.4.6.tar.bz2
-rwxr--r--. 1 root root 829779 11月 13 08:06 apr-util-1.5.1.tar.gz
-rwxr--r--. 1 root root 6137268 11月 13 07:47 httpd-2.4.3.tar.gz
-rw-r--r--. 1 root root 13027 11月 13 06:55 install.log
-rw-r--r--. 1 root root 3827 11月 13 06:54 install.log.syslog
-rwxr-xr-x. 1 root root 600 12月 2 19:53 test.sh
[root@www ~]#
2012年12月08日 02点12分 2
level 13
反过来测试也可以,p7zip压缩的分卷在windows下用7-zip也能正常解压,没有任何问题。
7za a -v1m 27.7z 27.mp3
2012年12月08日 02点12分 3
level 13
7-zip在windows下挺好用,可惜p7zip在linux下就不那么好用了,不支持同时从管道解压数据与输出管道,弄得shell脚本中进度控制条没法做。
最后还是改用tar.xz了,xz使用的也是
lz
ma算法,单说压缩率的话和7Z是一样的,而且xz可以各种随意的管道传输使用,比较方便
2012年12月08日 02点12分 4
level 7
xliang9550 楼主
谢谢回复,我安装了这个:
p7zip-9.20.1-1.el6.rf.x86_64.rpm
2012年12月08日 05点12分 5
1