%general-entities; %patches-entities; ]> Gzip-&gzip-version; Gzip <para>The Gzip package contains programs for compressing and decompressing files.</para> <segmentedlist> <segtitle>&buildtime;</segtitle> <segtitle>&diskspace;</segtitle> <seglistitem><seg>0.1 SBU</seg><seg>2.2 MB</seg></seglistitem> </segmentedlist> <segmentedlist> <segtitle>&dependencies;</segtitle> <seglistitem><seg>Bash, Binutils, Coreutils, Diffutils, GCC, Glibc, Grep, Make, and Sed</seg></seglistitem> </segmentedlist> </sect2> <sect2 role="installation"> <title>Installation of Gzip Gzip has 2 known security vulnerabilities. The following patch addresses both of them: patch -Np1 -i ../&gzip-security_fix-patch; Prepare Gzip for compilation: ./configure --prefix=/usr The gzexe script has the location of the gzip binary hard-wired into it. Because the location of the binary is changed later, the following command ensures that the new location gets placed into the script: sed -i 's@"BINDIR"@/bin@g' gzexe.in Compile the package: make Install the package: make install Move the gzip program to the /bin directory and create some commonly used symlinks to it: mv /usr/bin/gzip /bin rm /usr/bin/{gunzip,zcat} ln -s gzip /bin/gunzip ln -s gzip /bin/zcat ln -s gzip /bin/compress ln -s gunzip /bin/uncompress Contents of Gzip Installed programs compress (link to gzip), gunzip (link to gzip), gzexe, gzip, uncompress (link to gunzip), zcat (link to gzip), zcmp, zdiff, zegrep, zfgrep, zforce, zgrep, zless, zmore, and znew Short Descriptions compress Compresses and uncompresses compressed files compress gunzip Decompresses gzipped files gunzip gzexe Creates self-uncompressing executable files gzexe gzip Compresses the given files using Lempel-Ziv (LZ77) coding gzip uncompress Decompresses compressed files uncompress zcat Uncompresses the given gzipped files to standard output zcat zcmp Runs cmp on gzipped files zcmp zdiff Runs diff on gzipped files zdiff zegrep Runs egrep on gzipped files zegrep zfgrep Runs fgrep on gzipped files zfgrep zforce Forces a .gz extension on all given files that are gzipped files, so that gzip will not compress them again; this can be useful when file names were truncated during a file transfer zforce zgrep Runs grep on gzipped files zgrep zless Runs less on gzipped files zless zmore Runs more on gzipped files zmore znew Re-compresses files from compress format to gzip format—.Z to .gz znew