⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 gzip.html

📁 lfs3.1 从源代码构建linux。html版本。
💻 HTML
字号:
<HTML><HEAD><TITLE>Installing Gzip-1.2.4a</TITLE><METANAME="GENERATOR"CONTENT="Modular DocBook HTML Stylesheet Version 1.63"><LINKREL="HOME"TITLE="Linux From Scratch"HREF="../index.html"><LINKREL="UP"TITLE="Installing basic system software"HREF="../chapter06/chapter06.html"><LINKREL="PREVIOUS"TITLE="Installing Grep-2.4.2"HREF="../chapter06/grep.html"><LINKREL="NEXT"TITLE="Installing Lilo-22.1"HREF="../chapter06/lilo.html"></HEAD><BODYCLASS="sect1"BGCOLOR="#FFFFFF"TEXT="#000000"LINK="#0000FF"VLINK="#840084"ALINK="#0000FF"><DIVCLASS="NAVHEADER"><TABLEWIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><THCOLSPAN="3"ALIGN="center">Linux From Scratch: Version 3.1</TH></TR><TR><TDWIDTH="10%"ALIGN="left"VALIGN="bottom"><AHREF="../chapter06/grep.html">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom">Chapter 6. Installing basic system software</TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="../chapter06/lilo.html">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="sect1"><H1CLASS="sect1"><ANAME="ch06-gzip">6.36. Installing Gzip-1.2.4a</A></H1><TABLEBORDER="0"BGCOLOR="#E0E0E0"WIDTH="100%"><TR><TD><FONTCOLOR="#000000"><PRECLASS="screen">Estimated build time:           1 minuteEstimated required disk space:  1 MB</PRE></FONT></TD></TR></TABLE><DIVCLASS="sect2"><H2CLASS="sect2"><ANAME="AEN2995">6.36.1. Installation of Gzip</A></H2><P>Install Gzip by running the following commands:</P><P><TABLEBORDER="0"BGCOLOR="#E0E0E0"WIDTH="100%"><TR><TD><FONTCOLOR="#000000"><PRECLASS="screen"><TTCLASS="userinput"><B>./configure --prefix=/usr &#38;&#38;make &#38;&#38;make install &#38;&#38;cd /usr/bin &#38;&#38;mv gzip /bin &#38;&#38;rm gunzip zcat &#38;&#38;cd /bin &#38;&#38;ln -sf gzip gunzip &#38;&#38;ln -sf gzip zcat &#38;&#38;ln -sf gzip compress &#38;&#38;ln -sf gunzip uncompress</B></TT></PRE></FONT></TD></TR></TABLE></P></DIV><DIVCLASS="sect2"><H2CLASS="sect2"><ANAME="AEN3001">6.36.2. Contents</A></H2><P>The Gzip package contains the compress, gunzip, gzexe, gzip, uncompress, zcat, zcmp, zdiff, zforce, zgrep, zmore and znew programs.</P></DIV><DIVCLASS="sect2"><H2CLASS="sect2"><ANAME="AEN3004">6.36.3. Description</A></H2><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN3006">6.36.3.1. gunzip, uncompress</A></H3><P>gunzip and uncompress decompress files which are compressed with gzip.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN3009">6.36.3.2. gzexe</A></H3><P>gzexe allows you to compress executables in place and have them automatically uncompress and execute when they are run (at a penalty in performance).</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN3012">6.36.3.3. gzip</A></H3><P>gzip reduces the size of the named files using Lempel-Ziv coding (LZ77).</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN3015">6.36.3.4. zcat</A></H3><P>zcat uncompresses either a list of files on the command line or its standard input and writes the uncompressed data on standard output</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN3018">6.36.3.5. zcmp</A></H3><P>zcmp invokes the cmp program on compressed files.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN3021">6.36.3.6. zdiff</A></H3><P>zdiff invokes the diff program on compressed files.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN3024">6.36.3.7. zforce</A></H3><P>zforce forces a  .gz extension on all gzip files so that gzip will not compress them twice.  This can be useful for files with names truncated after a file transfer.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN3027">6.36.3.8. zgrep</A></H3><P>zgrep invokes the grep program on compressed files.</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN3030">6.36.3.9. zmore</A></H3><P>zmore is a filter which allows examination of compressed or plain text files one screen at a time on a soft-copy terminal (similar to themore program).</P></DIV><DIVCLASS="sect3"><H3CLASS="sect3"><ANAME="AEN3033">6.36.3.10. znew</A></H3><P>znew re-compresses files from .Z (compress) format to .gz (gzip) format.</P></DIV></DIV><DIVCLASS="sect2"><H2CLASS="sect2"><ANAME="AEN3036">6.36.4. Dependencies</A></H2><P>Gzip-1.2.4a needs the following to be installed:</P><PCLASS="literallayout"><br>sh&nbsp;from&nbsp;the&nbsp;bash&nbsp;package<br><br>as&nbsp;from&nbsp;the&nbsp;binutils&nbsp;package<br>ld&nbsp;from&nbsp;the&nbsp;binutils&nbsp;package<br>nm&nbsp;from&nbsp;the&nbsp;binutils&nbsp;package<br><br>chmod&nbsp;from&nbsp;the&nbsp;fileutils&nbsp;package<br>cp&nbsp;from&nbsp;the&nbsp;fileutils&nbsp;package<br>ln&nbsp;from&nbsp;the&nbsp;fileutils&nbsp;package<br>mv&nbsp;from&nbsp;the&nbsp;fileutils&nbsp;package<br>rm&nbsp;from&nbsp;the&nbsp;fileutils&nbsp;package<br><br>cc&nbsp;from&nbsp;the&nbsp;gcc&nbsp;package<br><br>grep&nbsp;from&nbsp;the&nbsp;grep&nbsp;package<br><br>make&nbsp;from&nbsp;the&nbsp;make&nbsp;package<br><br>sed&nbsp;from&nbsp;the&nbsp;sed&nbsp;package<br><br>cat&nbsp;from&nbsp;the&nbsp;textutils&nbsp;package<br>tr&nbsp;from&nbsp;the&nbsp;textutils&nbsp;package<br></P></DIV></DIV><DIVCLASS="NAVFOOTER"><HRALIGN="LEFT"WIDTH="100%"><TABLEWIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top"><AHREF="../chapter06/grep.html">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="../index.html">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="../chapter06/lilo.html">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">Installing Grep-2.4.2</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="../chapter06/chapter06.html">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">Installing Lilo-22.1</TD></TR></TABLE></DIV></BODY></HTML>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -