Does (gzip -dc | tar -x) substantially better then (tar -xz) ?

Thomas Lange lange at informatik.uni-koeln.de
Tue May 16 17:50:20 CEST 2006


>>>>> On Tue, 16 May 2006 17:44:44 +0200, shaulka at 012.net.il said:

    >   2.10 has the following line
    >      gzip -dc /var/tmp/base.tgz | tar -C $FAI_ROOT -xpf -

    > in /usr/lib/fai/subroutines-linux:task_extrbase()

    > My question is if  that line is substantially better then 

    >     tar -xzpf /var/tmp/base.tgz -C $FAI_ROOT

It was changed long time ago because of POSIX. Someone told me to use
a pipe and gzip instead of zcat instead of -z with tar. This only
works for the gnu version of tar, not every POSIX tar command. 

-- 
regards Thomas



More information about the linux-fai-devel mailing list