已安装的程序: compress (链接到 gzip), gunzip (链接到 gzip), gzexe, gzip, uncompress (链接到 gunzip), zcat (链接到 gzip), zcmp, zdiff, zegrep, zfgrep, zforce, zgrep, zless, zmore, 和 znew
Gzip 软件包包含用于压缩和解压缩文件的程序。
Gzip 有 2 个已知的安全漏洞。以下补丁解决了这两个漏洞
patch -Np1 -i ../gzip-1.3.5-security_fixes-1.patch
准备编译 Gzip
./configure --prefix=/usr
gzexe 脚本硬编码了 gzip 二进制文件的位置。 由于二进制文件的位置稍后会更改,因此以下命令确保将新位置放入脚本中
sed -i 's@"BINDIR"@/bin@g' gzexe.in
编译软件包
make
安装软件包
make install
将 gzip 程序移动到/bin目录并创建一些常用的符号链接
mv -v /usr/bin/gzip /bin rm -v /usr/bin/{gunzip,zcat} ln -sv gzip /bin/gunzip ln -sv gzip /bin/zcat ln -sv gzip /bin/compress ln -sv gunzip /bin/uncompress