������¼���������ä����ʤ顢�Ȥ����櫓�ǻ�Ƥߤ���

gzip�������xz��Ȥ��� | Okumura's Blog
���줫��� gzip ���Ǥ������ xz ���ǤȤ����������ȥ���������Ⱦ����������Ǥʤ����ǥ������񸻤�Ⱦ�������ϵ岹�Ȳ���Ⱦ�����롣

������

����Ū�ˤϡ�xz���ޥ�ɤ�Gnu Tar 1.22�ʹߤ��Ѱդ��뤳�Ȥˤʤ롣gz��bz2�Ȱ�äơ�gnu tar �� xz �ϥѥ��׷�ͳ�ǰ��äƤ���Τǡ�gnu tar �������󥹥ȡ��뤷�Ƥ�

% gnutar Jcvf perl-5.10.0.tar.xz perl-5.10.0
perl-5.10.0/
perl-5.10.0/apollo/
perl-5.10.0/apollo/netinet/
perl-5.10.0/apollo/netinet/in.h
perl-5.10.0/Artistic
perl-5.10.0/AUTHORS
tar (child): xz: Cannot exec: No such file or directory
tar (child): Error is not recoverable: exiting now
Broken pipe

�Ȥ������ܤˤʤ롣

Mac OS X

MacPorts��ͳ�ǡ�

% sudo port selfupdate
% sudo port install gnutar xz-devel

���ʤߤ˥ǥե���Ȥǥ��󥹥ȡ��뤵��Ƥ���/usr/bin/gnutar�ΥС������ϡ�Leopard�Ǥ�1.15.1���ä���

FreeBSD

gtar��lzmautils-devel��ǿ���ports��ꡣ���ޥ��̾��port̾���ۤʤ��������ա�

% su -m
# portupgrade -NPp lzmautils-devel gtar

Ubuntu 8.10

���ʤ�tar�κǿ��Ǥ�1.20.1�����ʤߤ�Ubuntu 9.04�Ǥʤ���ͳ�ϡ�VMWare tools���ޤ��б����Ƥ��ʤ����顣

���

���������ޤȤ��ȡ��ְ���Ψ��⤤���������Ȥ�⤤�פȤ������Ȥˤʤ롣�������ȥ��������ȥǥ��������̤Ϥ��Ƥ������ϵ岹�Ȳ���Ⱦ�����뤫�ϼ¤���̯�Ǥ��롣

�ޤ��ϰ���Ψ�������Ǥ� FreeBSD-7-stable �� /usr/src�򰵽̤��Ƥߤ���

% du -s /usr/src
502974	/usr/src
% du stable-src.tar.*
85168	stable-src.tar.bz2
108224	stable-src.tar.gz
71584	stable-src.tar.xz

���������äơ������餷����

����Ǥϡ�����®�٤Ϥɤ������ʤ��ʤ���orz�֤�Ǥ��롣

/usr/bin/time -l gtar zcvf ~/stable-src.tar.gz src
       87.42 real        54.90 user         5.51 sys
      1296  maximum resident set size
        53  average shared memory size
       683  average unshared data size
       128  average unshared stack size
       334  page reclaims
         0  page faults
         0  swaps
     39799  block input operations
       845  block output operations
         0  messages sent
         0  messages received
         0  signals received
     91099  voluntary context switches
    185081  involuntary context switches
/usr/bin/time -l gtar jcvf ~/stable-src.tar.bz2 src
      180.93 real       174.53 user         5.02 sys
      8108  maximum resident set size
        31  average shared memory size
       705  average unshared data size
       128  average unshared stack size
      2091  page reclaims
         0  page faults
         0  swaps
         1  block input operations
       665  block output operations
         0  messages sent
         0  messages received
         0  signals received
     64540  voluntary context switches
    110077  involuntary context switches
/usr/bin/time -l gtar Jcvf ~/stable-src.tar.xz src
      581.79 real       570.85 user         7.70 sys
     96344  maximum resident set size
        35  average shared memory size
       701  average unshared data size
       128  average unshared stack size
     24082  page reclaims
         0  page faults
         0  swaps
         2  block input operations
       559  block output operations
         0  messages sent
         0  messages received
         0  signals received
     74128  voluntary context switches
    134298  involuntary context switches

���̻���6.65�ܡ����꡼����74.3�ܤȤ����Τϡ��ष���ϵ岹�Ȳ���¥�ʤ������ǤϤ��롣

�ȤϤ�����bzip2��Ķ���밵��Ψ�Ȥ����Τϡ��¤�̥��Ū�Ǥ⤢�뤷�������ɬ�פʥ꥽�����Ϥ����ޤǺ����Фʤ��Τǡ�GNU coreutils �Τ褦�˲�ɴ����ȥ���������ɤ����褦�ʥե�����ˤϳΤ��ˤ褵��������

Dan the XZ Newbie