Re: [gentoo-user] Re: tar a brand new Gentoo install to a USB drive for safe keeping?
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 Lembark85-09 90th St. Workhorse Computing Woodhaven, NY, 11421 [EMAIL PROTECTED] +1 888 359 3508 -- gentoo-user@lists.gentoo.org mailing list
[gentoo-user] Re: tar a brand new Gentoo install to a USB drive for safe keeping?
Neil Bothwick [EMAIL PROTECTED] wrote: On Mon, 5 May 2008 00:04:44 -0400, Ian Graeme Hilt wrote: 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. Michael -- gentoo-user@lists.gentoo.org mailing list
Re: [gentoo-user] Re: tar a brand new Gentoo install to a USB drive for safe keeping?
On Tue, 06 May 2008 14:40:08 +0200, Michael Schmarck wrote: 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. However, this thread is specifically about using tar on /Gentoo, which does use GNU tar. Hence I think, that it is a good idea to keep on using z or j. That really depends on the level of portability your scripts need. Using z or j is more portable, but also more complex for scripting. -- Neil Bothwick Top Oxymorons Number 46: Found missing signature.asc Description: PGP signature