Java Mailing List Archive

http://www.redhatconfig.com/

Home » Gentoo Linux »

Re: [gentoo-user] Re: tar a brand new Gentoo install to a USB drive
for safe keeping?

Steven Lembark

2008-05-07

Replies:

Author LoginPost Reply

>>>> tar xvfp SYSTEM.tar.bz2
>>> To extract bzip2 files with tar, you need to add the "j" option.
>> That hasn't been needed for a long time. Tar is able to detect bzip2 and
>> gzip compression and handle it automatically.
>
> That's only true for GNU tar. If you're also dealing with other
> systems where you might not have GNU tar, you might be "surprised"
> to find that "tar xvf file.tgz" doesn't work.
>
> Hence I think, that it is a good idea to keep on using z or j.

Not all of them speak any squish factor, leaving:

  gzip -dc blah.tar.gz | tar xvf -;

(or bzip/bzip2) as the most portable route.

--
Steven Lembark                             85-09 90th St.
Workhorse Computing                      Woodhaven, NY, 11421
lembark@(protected)
--
gentoo-user@(protected)

©2008 redhatconfig.com - Jax Systems, LLC, U.S.A.