xz.xml 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371
  1. <?xml version="1.0" encoding="ISO-8859-1"?>
  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. <segmentedlist>
  26. <segtitle>&buildtime;</segtitle>
  27. <segtitle>&diskspace;</segtitle>
  28. <seglistitem>
  29. <seg>&xz-ch6-sbu;</seg>
  30. <seg>&xz-ch6-du;</seg>
  31. </seglistitem>
  32. </segmentedlist>
  33. </sect2>
  34. <sect2 role="installation">
  35. <title>Installation of Xz</title>
  36. <para>First, fix an internal problem:</para>
  37. <screen><userinput remap="pre">sed -e '/mf\.buffer = NULL/a next->coder->mf.size = 0;' \
  38. -i src/liblzma/lz/lz_encoder.c</userinput></screen>
  39. <para>Prepare Xz for compilation with:</para>
  40. <screen><userinput remap="configure">./configure --prefix=/usr \
  41. --disable-static \
  42. --docdir=/usr/share/doc/xz-&xz-version;</userinput></screen>
  43. <para>Compile the package:</para>
  44. <screen><userinput remap="make">make</userinput></screen>
  45. <para>To test the results, issue:</para>
  46. <screen><userinput remap="test">make check</userinput></screen>
  47. <para>Install the package and make sure that all essential files are in the
  48. correct directory:</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>Contents of Xz</title>
  56. <segmentedlist>
  57. <segtitle>Installed programs</segtitle>
  58. <segtitle>Installed libraries</segtitle>
  59. <segtitle>Installed directories</segtitle>
  60. <seglistitem>
  61. <seg>
  62. lzcat (link to xz),
  63. lzcmp (link to xzdiff),
  64. lzdiff (link to xzdiff),
  65. lzegrep (link to xzgrep),
  66. lzfgrep (link to xzgrep),
  67. lzgrep (link to xzgrep),
  68. lzless (link to xzless),
  69. lzma (link to xz),
  70. lzmadec,
  71. lzmainfo,
  72. lzmore (link to xzmore),
  73. unlzma (link to xz),
  74. unxz (link to xz),
  75. xz,
  76. xzcat (link to xz),
  77. xzcmp (link to xzdiff),
  78. xzdec,
  79. xzdiff,
  80. xzegrep (link to xzgrep),
  81. xzfgrep (link to xzgrep),
  82. xzgrep,
  83. xzless, and
  84. xzmore</seg>
  85. <seg>
  86. liblzma.so
  87. </seg>
  88. <seg>
  89. /usr/include/lzma and
  90. /usr/share/doc/xz-&xz-version;
  91. </seg>
  92. </seglistitem>
  93. </segmentedlist>
  94. <variablelist>
  95. <bridgehead renderas="sect3">Short Descriptions</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>Decompresses to standard output</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>Runs <command>cmp</command> on LZMA compressed files</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>Runs <command>diff</command> on LZMA compressed files</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>Runs <command>egrep</command> on LZMA compressed files</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>Runs <command>fgrep</command> on LZMA compressed files</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>Runs <command>grep</command> on LZMA compressed files</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>Runs <command>less</command> on LZMA compressed files</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>Compresses or decompresses files using the LZMA format</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>A small and fast decoder for LZMA compressed files</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>Shows information stored in the LZMA compressed file header</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>Runs <command>more</command> on LZMA compressed files</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>Decompresses files using the LZMA format</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>Decompresses files using the XZ format</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>Compresses or decompresses files using the XZ format</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>Decompresses to standard output</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>Runs <command>cmp</command> on XZ compressed files</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>A small and fast decoder for XZ compressed files</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>Runs <command>diff</command> on XZ compressed files</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>Runs <command>egrep</command> on XZ compressed files files</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>Runs <command>fgrep</command> on XZ compressed files</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>Runs <command>grep</command> on XZ compressed files</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>Runs <command>less</command> on XZ compressed files</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>Runs <command>more</command> on XZ compressed files</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>The library implementing lossless, block-sorting data
  309. compression, using the Lempel-Ziv-Markov chain algorithm</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>