xz.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  4. <!ENTITY % general-entities SYSTEM "../general.ent">
  5. %general-entities;
  6. ]>
  7. <sect1 id="ch-system-xz" role="wrap">
  8. <?dbhtml filename="xz.html"?>
  9. <sect1info condition="script">
  10. <productname>xz</productname>
  11. <productnumber>&xz-version;</productnumber>
  12. <address>&xz-url;</address>
  13. </sect1info>
  14. <title>Xz-&xz-version;</title>
  15. <indexterm zone="ch-system-xz">
  16. <primary sortas="a-xz">Xz</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <!--para>The Xz package contains programs for compressing and decompressing
  21. files. It provides capabilities for the lzma and the newer xz compression
  22. formats. Compressing text files with <command>xz</command> yields a better
  23. compression percentage than with the traditional <command>gzip</command> or
  24. <command>bzip2</command> commands.</para-->
  25. <para>Xz 软件包包含文件压缩和解压缩工具,它能够处理 lzma 和新的 xz
  26. 压缩文件格式。使用 <command>xz</command> 压缩文本文件,
  27. 可以得到比传统的 <command>gzip</command> 或 <command>bzip2</command>
  28. 更好的压缩比。</para>
  29. <segmentedlist>
  30. <segtitle>&buildtime;</segtitle>
  31. <segtitle>&diskspace;</segtitle>
  32. <seglistitem>
  33. <seg>&xz-ch6-sbu;</seg>
  34. <seg>&xz-ch6-du;</seg>
  35. </seglistitem>
  36. </segmentedlist>
  37. </sect2>
  38. <sect2 role="installation">
  39. <title>安装 Xz</title>
  40. <para>准备编译 Xz:</para>
  41. <screen><userinput remap="configure">./configure --prefix=/usr \
  42. --disable-static \
  43. --docdir=/usr/share/doc/xz-&xz-version;</userinput></screen>
  44. <para>编译该软件包:</para>
  45. <screen><userinput remap="make">make</userinput></screen>
  46. <para>运行以下命令以测试编译结果:</para>
  47. <screen><userinput remap="test">make check</userinput></screen>
  48. <para>安装该软件包,并保证所有重要文件都位于正确的目录中:</para>
  49. <screen><userinput remap="install">make install
  50. mv -v /usr/bin/{lzma,unlzma,lzcat,xz,unxz,xzcat} /bin
  51. mv -v /usr/lib/liblzma.so.* /lib
  52. ln -svf ../../lib/$(readlink /usr/lib/liblzma.so) /usr/lib/liblzma.so</userinput></screen>
  53. </sect2>
  54. <sect2 id="contents-xz" role="content">
  55. <title>Xz 的内容</title>
  56. <segmentedlist>
  57. <segtitle>安装的程序</segtitle>
  58. <segtitle>安装的库</segtitle>
  59. <segtitle>安装的目录</segtitle>
  60. <seglistitem>
  61. <seg>
  62. lzcat (到 xz 的链接),
  63. lzcmp (到 xzdiff 的链接),
  64. lzdiff (到 xzdiff 的链接),
  65. lzegrep (到 xzgrep 的链接),
  66. lzfgrep (到 xzgrep 的链接),
  67. lzgrep (到 xzgrep 的链接),
  68. lzless (到 xzless 的链接),
  69. lzma (到 xz 的链接),
  70. lzmadec,
  71. lzmainfo,
  72. lzmore (到 xzmore 的链接),
  73. unlzma (到 xz 的链接),
  74. unxz (到 xz 的链接),
  75. xz,
  76. xzcat (到 xz 的链接),
  77. xzcmp (到 xzdiff 的链接),
  78. xzdec,
  79. xzdiff,
  80. xzegrep (到 xzgrep 的链接),
  81. xzfgrep (到 xzgrep 的链接),
  82. xzgrep,
  83. xzless, 以及
  84. xzmore</seg>
  85. <seg>
  86. liblzma.so
  87. </seg>
  88. <seg>
  89. /usr/include/lzma 和
  90. /usr/share/doc/xz-&xz-version;
  91. </seg>
  92. </seglistitem>
  93. </segmentedlist>
  94. <variablelist>
  95. <bridgehead renderas="sect3">简要描述</bridgehead>
  96. <?dbfo list-presentation="list"?>
  97. <?dbhtml list-presentation="table"?>
  98. <varlistentry id="lzcat">
  99. <term><command>lzcat</command></term>
  100. <listitem>
  101. <para>解压到标准输出</para>
  102. <indexterm zone="ch-system-xz lzcat">
  103. <primary sortas="b-lzcat">lzcat</primary>
  104. </indexterm>
  105. </listitem>
  106. </varlistentry>
  107. <varlistentry id="lzcmp">
  108. <term><command>lzcmp</command></term>
  109. <listitem>
  110. <para>在 LZMA 压缩文件上执行 <command>cmp</command></para>
  111. <indexterm zone="ch-system-xz lzcmp">
  112. <primary sortas="b-lzcmp">lzcmp</primary>
  113. </indexterm>
  114. </listitem>
  115. </varlistentry>
  116. <varlistentry id="lzdiff">
  117. <term><command>lzdiff</command></term>
  118. <listitem>
  119. <para>在 LZMA 压缩文件上执行 <command>diff</command></para>
  120. <indexterm zone="ch-system-xz lzdiff">
  121. <primary sortas="b-lzdiff">lzdiff</primary>
  122. </indexterm>
  123. </listitem>
  124. </varlistentry>
  125. <varlistentry id="lzegrep">
  126. <term><command>lzegrep</command></term>
  127. <listitem>
  128. <para>在 LZMA 压缩文件上执行 <command>egrep</command></para>
  129. <indexterm zone="ch-system-xz lzegrep">
  130. <primary sortas="b-lzegrep">lzegrep</primary>
  131. </indexterm>
  132. </listitem>
  133. </varlistentry>
  134. <varlistentry id="lzfgrep">
  135. <term><command>lzfgrep</command></term>
  136. <listitem>
  137. <para>在 LZMA 压缩文件上执行 <command>fgrep</command></para>
  138. <indexterm zone="ch-system-xz lzfgrep">
  139. <primary sortas="b-lzfgrep">lzfgrep</primary>
  140. </indexterm>
  141. </listitem>
  142. </varlistentry>
  143. <varlistentry id="lzgrep">
  144. <term><command>lzgrep</command></term>
  145. <listitem>
  146. <para>在 LZMA 压缩文件上执行 <command>grep</command></para>
  147. <indexterm zone="ch-system-xz lzgrep">
  148. <primary sortas="b-lzgrep">lzgrep</primary>
  149. </indexterm>
  150. </listitem>
  151. </varlistentry>
  152. <varlistentry id="lzless">
  153. <term><command>lzless</command></term>
  154. <listitem>
  155. <para>在 LZMA 压缩文件上执行 <command>less</command></para>
  156. <indexterm zone="ch-system-xz lzless">
  157. <primary sortas="b-lzless">lzless</primary>
  158. </indexterm>
  159. </listitem>
  160. </varlistentry>
  161. <varlistentry id="lzma">
  162. <term><command>lzma</command></term>
  163. <listitem>
  164. <para>使用 LZMA 格式压缩或解压缩文件</para>
  165. <indexterm zone="ch-system-xz lzma">
  166. <primary sortas="b-lzma">lzma</primary>
  167. </indexterm>
  168. </listitem>
  169. </varlistentry>
  170. <varlistentry id="lzmadec">
  171. <term><command>lzmadec</command></term>
  172. <listitem>
  173. <para>一个轻量的 LZMA 压缩文件快速解码器</para>
  174. <indexterm zone="ch-system-xz lzmadec">
  175. <primary sortas="b-lzmadec">lzmadec</primary>
  176. </indexterm>
  177. </listitem>
  178. </varlistentry>
  179. <varlistentry id="lzmainfo">
  180. <term><command>lzmainfo</command></term>
  181. <listitem>
  182. <para>显示 LZMA 压缩文件头中存储的信息</para>
  183. <indexterm zone="ch-system-xz lzmainfo">
  184. <primary sortas="b-lzmainfo">lzmainfo</primary>
  185. </indexterm>
  186. </listitem>
  187. </varlistentry>
  188. <varlistentry id="lzmore">
  189. <term><command>lzmore</command></term>
  190. <listitem>
  191. <para>在 LZMA 压缩文件上执行 <command>more</command></para>
  192. <indexterm zone="ch-system-xz lzmore">
  193. <primary sortas="b-lzmamore">lzmore</primary>
  194. </indexterm>
  195. </listitem>
  196. </varlistentry>
  197. <varlistentry id="unlzma">
  198. <term><command>unlzma</command></term>
  199. <listitem>
  200. <para>使用 LZMA 格式解压缩文件</para>
  201. <indexterm zone="ch-system-xz unlzma">
  202. <primary sortas="b-unlzma">unlzma</primary>
  203. </indexterm>
  204. </listitem>
  205. </varlistentry>
  206. <varlistentry id="unxz">
  207. <term><command>unxz</command></term>
  208. <listitem>
  209. <para>使用 XZ 格式解压缩文件</para>
  210. <indexterm zone="ch-system-xz unxz">
  211. <primary sortas="b-unxz">unxz</primary>
  212. </indexterm>
  213. </listitem>
  214. </varlistentry>
  215. <varlistentry id="xz">
  216. <term><command>xz</command></term>
  217. <listitem>
  218. <para>使用 XZ 格式压缩或解压缩文件</para>
  219. <indexterm zone="ch-system-xz xz">
  220. <primary sortas="b-xz">xz</primary>
  221. </indexterm>
  222. </listitem>
  223. </varlistentry>
  224. <varlistentry id="xzcat">
  225. <term><command>xzcat</command></term>
  226. <listitem>
  227. <para>解压到标准输出</para>
  228. <indexterm zone="ch-system-xz xzcat">
  229. <primary sortas="b-xzcat">xzcat</primary>
  230. </indexterm>
  231. </listitem>
  232. </varlistentry>
  233. <varlistentry id="xzcmp">
  234. <term><command>xzcmp</command></term>
  235. <listitem>
  236. <para>在 XZ 压缩文件上执行 <command>cmp</command></para>
  237. <indexterm zone="ch-system-xz xzcmp">
  238. <primary sortas="b-xzcmp">xzcmp</primary>
  239. </indexterm>
  240. </listitem>
  241. </varlistentry>
  242. <varlistentry id="xzdec">
  243. <term><command>xzdec</command></term>
  244. <listitem>
  245. <para>一个轻量的 XZ 压缩文件解码器</para>
  246. <indexterm zone="ch-system-xz xzdec">
  247. <primary sortas="b-xzdec">xzdec</primary>
  248. </indexterm>
  249. </listitem>
  250. </varlistentry>
  251. <varlistentry id="xzdiff">
  252. <term><command>xzdiff</command></term>
  253. <listitem>
  254. <para>在 XZ 压缩文件上执行 <command>diff</command></para>
  255. <indexterm zone="ch-system-xz xzdiff">
  256. <primary sortas="b-xzdiff">xzdiff</primary>
  257. </indexterm>
  258. </listitem>
  259. </varlistentry>
  260. <varlistentry id="xzegrep">
  261. <term><command>xzegrep</command></term>
  262. <listitem>
  263. <para>在 XZ 压缩文件上执行 <command>egrep</command></para>
  264. <indexterm zone="ch-system-xz xzegrep">
  265. <primary sortas="b-xzegrep">xzegrep</primary>
  266. </indexterm>
  267. </listitem>
  268. </varlistentry>
  269. <varlistentry id="xzfgrep">
  270. <term><command>xzfgrep</command></term>
  271. <listitem>
  272. <para>在 XZ 压缩文件上执行 <command>fgrep</command></para>
  273. <indexterm zone="ch-system-xz xzfgrep">
  274. <primary sortas="b-xzfgrep">xzfgrep</primary>
  275. </indexterm>
  276. </listitem>
  277. </varlistentry>
  278. <varlistentry id="xzgrep">
  279. <term><command>xzgrep</command></term>
  280. <listitem>
  281. <para>在 XZ 压缩文件上执行 <command>grep</command></para>
  282. <indexterm zone="ch-system-xz xzgrep">
  283. <primary sortas="b-xzgrep">xzgrep</primary>
  284. </indexterm>
  285. </listitem>
  286. </varlistentry>
  287. <varlistentry id="xzless">
  288. <term><command>xzless</command></term>
  289. <listitem>
  290. <para>在 XZ 压缩文件上执行 <command>less</command></para>
  291. <indexterm zone="ch-system-xz xzless">
  292. <primary sortas="b-xzless">xzless</primary>
  293. </indexterm>
  294. </listitem>
  295. </varlistentry>
  296. <varlistentry id="xzmore">
  297. <term><command>xzmore</command></term>
  298. <listitem>
  299. <para>在 XZ 压缩文件上执行 <command>more</command></para>
  300. <indexterm zone="ch-system-xz xzmore">
  301. <primary sortas="b-xzmore">xzmore</primary>
  302. </indexterm>
  303. </listitem>
  304. </varlistentry>
  305. <varlistentry id="liblzma">
  306. <term><filename class="libraryfile">liblzma</filename></term>
  307. <listitem>
  308. <para>实现基于
  309. Lempel-Zip-Markov 链的无损块排序数据压缩算法的库</para>
  310. <indexterm zone="ch-system-xz liblzma">
  311. <primary sortas="c-liblzma">liblzma</primary>
  312. </indexterm>
  313. </listitem>
  314. </varlistentry>
  315. </variablelist>
  316. </sect2>
  317. </sect1>