Re: compress vs gzip vs bzip2 (vs pack) - was IDS TRIAL ( not trail ) download.
- From: Jonathan Leffler <jleffler@xxxxxxxxxxxxx>
- Date: Thu, 29 Dec 2005 05:16:36 GMT
Double Echo wrote:
I noticed three different compression methods for the various products, for Linux. .gz and .Z . I don't even know if my Linux has an uncompress command, gzip or bunzip2 are the standard. Have them all the same, tar.gz for UNIX/Linux, and .zip for Windows. If maximum compression is insisted upon, then go for bunzip2 format, but only if you really can't just use .tar.gz. If you have to use compress format ( .Z ) then use it for UNIX, but not for Linux platforms, nobody uses compress on Linux when you can use gzip.
You can use gzip (gunzip) to decompress files created with compress (.Z), as well as uncompress itself, of course.
A .tar.gz file is typically 10-20% bigger than a .tar.bz2 file of the same material.
Once upon a time, there was a program called pack (and unpack, and pcat) that used the suffix .z (lower-case). It was nowhere near as efficient as compress (.Z), which in turn is not as efficient as gzip, which is usually less efficient than bzip2. The zip program - available on (or for) Windows and Unix/Linux - is about as efficient as gzip.
Personally, I still use gzip when I distribute SQLCMD, mainly because I always have done, and I use the .tgz suffix to boot. For DBD::Informix, I use .tar.gz because everything in the Perl world does. Otherwise, I use bzip2 unless there's a compelling reason to do otherwise. And I typically uncompress and then compress (with bzip2) anything that isn't suppplied as a bzip2 file, simply to save the space. Doubly so with the older Informix software. The latest versions are mainly compressed material already and recompressing them does nothing significant to save space.
Note that GNU TAR 1.15.1 has built-in support for bzip2 (-j to create), and auto-detects the compressor program for decompression. That permits you to type:
tar -xf tarfile1.tgz tar -xf tarfile2.tar.gz tar -xf tarfile3.tar.bz2 ....
All are detected and managed correctly.
-- Jonathan Leffler #include <disclaimer.h> Email: jleffler@xxxxxxxxxxxxx, jleffler@xxxxxxxxxx Guardian of DBD::Informix v2005.02 -- http://dbi.perl.org/ .
- Follow-Ups:
- References:
- IDS trail download.
- From: david
- Re: IDS TRIAL ( not trail ) download.
- From: Double Echo
- IDS trail download.
- Prev by Date: Re: Merry Christmas & Happy new year
- Next by Date: Re: compress vs gzip vs bzip2 (vs pack) - was IDS TRIAL ( not trail ) download.
- Previous by thread: Re: IDS TRIAL ( not trail ) download.
- Next by thread: Re: compress vs gzip vs bzip2 (vs pack) - was IDS TRIAL ( not trail ) download.
- Index(es):
Relevant Pages
|
|