Posted by: Anonymous Coward
on September 10, 2005 11:41 AM
The most general way would be to use a pipe. For instance, to uncompress a<nobr> <wbr></nobr>.tar.bz2 archive:
<tt>bunzip2 -c archive.tar.bz2 | tar xf -</tt>
The <tt>bunzip2 -c</tt> command will output the uncompressed<nobr> <wbr></nobr>.tar data to the <tt>tar</tt> program, which will then extract it. One advantage of this method is that you can use a compression format other than gzip or bzip2.
I prefer the lzma compression (7-zip), which provides significant disk space savings over bzip2, though the compression speed is very slow (de-compression speed is not bad, though). You can create a<nobr> <wbr></nobr>.tar.7z archive like this:
<tt>tar cf - archive | lzma e archive.tar.7z -si</tt>
And decompress it with
<tt>lzma d archive.tar.7z -so | tar xf -</tt>
You could even create<nobr> <wbr></nobr>.tar.zip archives or<nobr> <wbr></nobr>.tar.rar archives. In this way, tar is very general; but of course, if you plan to distribute the archives, you should use<nobr> <wbr></nobr>.tar.gz or<nobr> <wbr></nobr>.tar.bz2, as those are the most common right now.
Re:Strange
Posted by: Anonymous Coward on September 10, 2005 11:41 AMThe most general way would be to use a pipe. For instance, to uncompress a<nobr> <wbr></nobr>.tar.bz2 archive:
The <tt>bunzip2 -c</tt> command will output the uncompressed<nobr> <wbr></nobr>.tar data to the <tt>tar</tt> program, which will then extract it. One advantage of this method is that you can use a compression format other than gzip or bzip2.
I prefer the lzma compression (7-zip), which provides significant disk space savings over bzip2, though the compression speed is very slow (de-compression speed is not bad, though). You can create a<nobr> <wbr></nobr>.tar.7z archive like this:
And decompress it with
You could even create<nobr> <wbr></nobr>.tar.zip archives or<nobr> <wbr></nobr>.tar.rar archives. In this way, tar is very general; but of course, if you plan to distribute the archives, you should use<nobr> <wbr></nobr>.tar.gz or<nobr> <wbr></nobr>.tar.bz2, as those are the most common right now.
#