LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
楼主: 聚焦深空

gzip bzip2 lzma xz 7z 讨论(xz 推荐贴)

[复制链接]
 楼主| 发表于 2009-5-22 20:20:35 | 显示全部楼层
吼吼,找到那个使用 xz 文件格式发布的软件包了。
http://ftp.gnu.org/gnu/coreutils/?C=M;O=D
coreutils-7.4.tar.xz.sig         07-May-2009 13:05  835   
coreutils-7.4.tar.xz             07-May-2009 13:05  3.9M  
coreutils-7.4.tar.gz.sig         07-May-2009 13:05  835   
coreutils-7.4.tar.gz             07-May-2009 13:05  9.3M  
...
coreutils-7.1.tar.xz.sig         21-Feb-2009 17:19  835   
coreutils-7.1.tar.xz             21-Feb-2009 17:19  3.8M  
coreutils-7.1.tar.gz.sig         21-Feb-2009 17:07  835   
coreutils-7.1.tar.gz             21-Feb-2009 17:07  9.1M  
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-5-22 20:26:44 | 显示全部楼层
对首贴中英文不感冒的可以参考下面中文资源
http://zh.wikipedia.org/wiki/LZMA
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-5-22 20:39:40 | 显示全部楼层
Post by 聚焦深空;1989992
但其使用的 lzma 算法部分或许应该使用原来的 LGPL,不知 lzma sdk 是不是 xz 作者所有。

刚刚确认 xz utils、lzma sdk 作者为 Igor Pavlov。
lzma sdk 源代码 DOC/lzma.txt 有如下许可协议声明
LZMA SDK is written and placed in the public domain by Igor Pavlov.

看来 xz utils 放到 公共域 是 没问题的了。
回复 支持 反对

使用道具 举报

发表于 2009-5-23 06:40:16 | 显示全部楼层
好像現在的 tar 還未懂得自動調用 xz 來加壓或解壓包,似乎要等待一段時間了
回复 支持 反对

使用道具 举报

发表于 2009-5-23 09:18:13 | 显示全部楼层
Post by d00m3d;1990094
好像現在的 tar 還未懂得自動調用 xz 來加壓或解壓包,似乎要等待一段時間了
Tar-1.22已支持xz
CLFS的一些patch:
http://svn.cross-lfs.org/svn/rep ... compressors-1.patch
http://svn.cross-lfs.org/svn/rep ... compressors-1.patch
http://svn.cross-lfs.org/svn/rep ... compressors-1.patch
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-5-23 09:31:25 | 显示全部楼层
Post by d00m3d;1990094
好像現在的 tar 還未懂得自動調用 xz 來加壓或解壓包,似乎要等待一段時間了

tar-1.22 可以使用 --xz 或 -J 参数
http://en.wikipedia.org/wiki/Tar_(file_format)
Popular tar programs like the BSD and GNU versions of tar support the command line options -z (gzip), and -j (bzip2) to automatically compress or decompress the archive file it is currently working with. GNU tar from version 1.20 onwards also supports --lzma (LZMA). 1.21 also supports lzop via --lzop, and 1.22 adds support for xz via --xz or -J. Both will automatically extract compressed gzip and bzip2 archives with or without these options.

其他版本 tar 可使用 管道
tar -cvf - * | xz -c -9 > *.tar.xz
或 --use-compress-program=PROG 参数
tar --use-compress-program=xz -cvf *.tar.xz *

多谢分享。
激进的人好多。
回复 支持 反对

使用道具 举报

发表于 2009-5-23 09:34:59 | 显示全部楼层
原来是我火星了,哈哈。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2009-5-24 16:51:04 | 显示全部楼层
建议 正在使用 或 准备使用 xz utils 的 跟踪 lzma utils 邮件列表:
https://lists.sourceforge.net/lists/listinfo/lzmautils-announce
http://sourceforge.net/mailarchi ... =lzmautils-announce
   [LZMA Utils announce] XZ Utils 4.999.8beta      Lasse Collin <lasse.collin@tu...>      1      2009-02-06 09:28
  [LZMA Utils announce] XZ Utils 4.999.7beta (new name for LZMA Utils)     Lasse Collin <lasse.collin@tu...>     1     2008-12-31 18:07
  [LZMA Utils announce] LZMA Utils 4.999.5alpha     Lasse Collin <lasse.collin@tu...>     1     2008-09-10 14:58
  [LZMA Utils announce] LZMA Utils 4.32.7     Lasse Collin <lasse.collin@tu...>     1     2008-07-30 11:47
  [LZMA Utils announce] LZMA Utils 4.32.6     Lasse Collin <lasse.collin@tu...>     1     2008-05-14 18:28
  [LZMA Utils announce] LZMA Utils 4.999.3alpha     Lasse Collin <lasse.collin@tu...>     1     2008-04-25 13:53
  [LZMA Utils announce] LZMA Utils 4.32.5     Lasse Collin <lasse.collin@tu...>     1     2008-01-27 08:42
  [LZMA Utils announce] LZMA Utils 4.32.4     Lasse Collin <lasse.collin@tu...>     1     2007-12-10 16:32
  [LZMA Utils announce] LZMA Utils 4.42.2alpha snapshot     Lasse Collin <lasse.collin@tu...>     1     2007-12-10 14:24
  [LZMA Utils announce] LZMA Utils 4.32.3 released     Lasse Collin <lasse.collin@tu...>     1     2007-11-07 15:56
  [LZMA Utils announce] LZMA Utils 4.32.2 released     Lasse Collin <lasse.collin@tu...>     1     2007-10-26 13:32
回复 支持 反对

使用道具 举报

发表于 2009-5-24 20:38:48 | 显示全部楼层
Post by newper;1989981
.xz与.lzma的压缩率差不多啊

PS:2.6.30支持将内核(包括initramfs)用lzma压缩

http://www.squashfs-lzma.org/
SquashFS version 4.0 is included in Linux Kernel 2.6.29. LZMA support is not there, but since squashfs made its way to the kernel, LZMA compression algorithm will follow it sooner or later. What does it mean for this project (squashfs-lzma.org)? There is no longer any interest in developing separate patches against squashfs 4.0. If you need it, you'll most likely find it in official Kernel 2.6.30 or so. So don't worry, be happy




to 聚焦深空

不负责,因为norflash实在是小,只有4MB,要做一个NAS,RDC的 X86.
Openwrt的标准就是 squashfs+LZMA压缩.现在embedded硬件都很强大了,
但是我手里的 RDC只有 133主频,和 zip -9 的解压速度没法比.
回复 支持 反对

使用道具 举报

发表于 2009-5-24 20:59:38 | 显示全部楼层
Post by linux_pro;1990626
http://www.squashfs-lzma.org/
SquashFS version 4.0 is included in Linux Kernel 2.6.29. LZMA support is not there, but since squashfs made its way to the kernel, LZMA compression algorithm will follow it sooner or later. What does it mean for this project (squashfs-lzma.org)? There is no longer any interest in developing separate patches against squashfs 4.0. If you need it, you'll most likely find it in official Kernel 2.6.30 or so. So don't worry, be happy
squashfs-lzma进2.6.30估计是没希望了
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表