[ede49cd] | 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 |
|
---|
| 8 | <sect1 id="ch-system-zstd" role="wrap">
|
---|
| 9 | <?dbhtml filename="zstd.html"?>
|
---|
| 10 |
|
---|
| 11 | <sect1info condition="script">
|
---|
| 12 | <productname>zstd</productname>
|
---|
| 13 | <productnumber>&zstd-version;</productnumber>
|
---|
| 14 | <address>&zstd-url;</address>
|
---|
| 15 | </sect1info>
|
---|
| 16 |
|
---|
| 17 | <title>Zstd-&zstd-version;</title>
|
---|
| 18 |
|
---|
| 19 | <indexterm zone="ch-system-zstd">
|
---|
| 20 | <primary sortas="a-zstd">zstd</primary>
|
---|
| 21 | </indexterm>
|
---|
| 22 |
|
---|
| 23 | <sect2 role="package">
|
---|
| 24 | <title/>
|
---|
| 25 |
|
---|
| 26 | <para>Zstandard is a real-time compression algorithm, providing high
|
---|
| 27 | compression ratios. It offers a very wide range of compression / speed
|
---|
| 28 | trade-offs, while being backed by a very fast decoder.</para>
|
---|
| 29 |
|
---|
| 30 | <segmentedlist>
|
---|
| 31 | <segtitle>&buildtime;</segtitle>
|
---|
| 32 | <segtitle>&diskspace;</segtitle>
|
---|
| 33 |
|
---|
| 34 | <seglistitem>
|
---|
[37e35d2] | 35 | <seg>&zstd-fin-sbu;</seg>
|
---|
| 36 | <seg>&zstd-fin-du;</seg>
|
---|
[ede49cd] | 37 | </seglistitem>
|
---|
| 38 | </segmentedlist>
|
---|
| 39 |
|
---|
| 40 | </sect2>
|
---|
| 41 |
|
---|
| 42 | <sect2 role="installation">
|
---|
| 43 | <title>Installation of Zstd</title>
|
---|
| 44 |
|
---|
| 45 | <para>Compile the package:</para>
|
---|
| 46 |
|
---|
| 47 | <screen><userinput remap="make">make</userinput></screen>
|
---|
| 48 |
|
---|
[5e06d04] | 49 | <para>To test the results, issue:</para>
|
---|
| 50 |
|
---|
| 51 | <screen><userinput remap="test">make check</userinput></screen>
|
---|
[ede49cd] | 52 |
|
---|
| 53 | <para>Install the package:</para>
|
---|
| 54 |
|
---|
| 55 | <screen><userinput remap="install">make prefix=/usr install</userinput></screen>
|
---|
| 56 |
|
---|
| 57 | <para>Remove the static library and move the shared library to
|
---|
| 58 | <filename class="directory">/lib</filename>. Also, the
|
---|
| 59 | <filename class="extension">.so</filename> file in
|
---|
| 60 | <filename class="directory">/usr/lib</filename> will need to be recreated:</para>
|
---|
| 61 |
|
---|
| 62 | <screen><userinput remap="install">rm -v /usr/lib/libzstd.a
|
---|
| 63 | mv -v /usr/lib/libzstd.so.* /lib
|
---|
| 64 | ln -sfv ../../lib/$(readlink /usr/lib/libzstd.so) /usr/lib/libzstd.so</userinput></screen>
|
---|
| 65 |
|
---|
| 66 | </sect2>
|
---|
| 67 |
|
---|
[37e35d2] | 68 | <!-- - - - - - - - - - -->
|
---|
| 69 | <!-- Multilib - 32bit -->
|
---|
| 70 | <!-- - - - - - - - - - -->
|
---|
| 71 |
|
---|
| 72 | <sect2 arch="ml_32,ml_all" role="installation">
|
---|
| 73 | <title>Installation of Zstd - 32bit</title>
|
---|
| 74 |
|
---|
| 75 | <para>Clean previous build:</para>
|
---|
| 76 |
|
---|
| 77 | <screen><userinput remap="pre">make clean</userinput></screen>
|
---|
| 78 |
|
---|
| 79 | <para>Compile the package:</para>
|
---|
| 80 |
|
---|
| 81 | <screen><userinput remap="make">CC="gcc -m32" make</userinput></screen>
|
---|
| 82 |
|
---|
| 83 | <para>Install the package:</para>
|
---|
| 84 |
|
---|
| 85 | <screen><userinput remap="install">CC="gcc -m32" make prefix=/usr DESTDIR=$PWD/DESTDIR install
|
---|
| 86 | cp -Rv DESTDIR/usr/lib/* &usr-lib-m32;/
|
---|
[c69f870] | 87 | sed -e "/^libdir/s/lib$&lib-m32;/" -i &usr-lib-m32;/pkgconfig/libzstd.pc
|
---|
| 88 | rm -rf DESTDIR</userinput></screen>
|
---|
[37e35d2] | 89 |
|
---|
| 90 | </sect2><!-- m32 -->
|
---|
| 91 |
|
---|
| 92 | <!-- - - - - - - - - - -->
|
---|
| 93 | <!-- Multilib - x32bit -->
|
---|
| 94 | <!-- - - - - - - - - - -->
|
---|
| 95 |
|
---|
| 96 | <sect2 arch="ml_x32,ml_all" role="installation">
|
---|
| 97 | <title>Installation of Zstd - x32bit</title>
|
---|
| 98 |
|
---|
| 99 | <para>Clean previous build:</para>
|
---|
| 100 |
|
---|
| 101 | <screen><userinput remap="pre">make clean</userinput></screen>
|
---|
| 102 |
|
---|
| 103 | <para>Compile the package:</para>
|
---|
| 104 |
|
---|
| 105 | <screen><userinput remap="make">CC="gcc -mx32" make</userinput></screen>
|
---|
| 106 |
|
---|
| 107 | <para>Install the package:</para>
|
---|
| 108 |
|
---|
| 109 | <screen><userinput remap="install">CC="gcc -mx32" make prefix=/usr DESTDIR=$PWD/DESTDIR install
|
---|
| 110 | cp -Rv DESTDIR/usr/lib/* &usr-lib-mx32;/
|
---|
[c69f870] | 111 | sed -e "/^libdir/s/lib$&lib-mx32;/" -i &usr-lib-mx32;/pkgconfig/libzstd.pc
|
---|
| 112 | rm -rf DESTDIR</userinput></screen>
|
---|
[37e35d2] | 113 |
|
---|
| 114 | </sect2><!-- mx32 -->
|
---|
| 115 |
|
---|
[ede49cd] | 116 | <sect2 id="contents-zstd" role="content">
|
---|
| 117 | <title>Contents of Zstd</title>
|
---|
| 118 |
|
---|
| 119 | <segmentedlist>
|
---|
| 120 | <segtitle>Installed programs</segtitle>
|
---|
| 121 | <segtitle>Installed library</segtitle>
|
---|
| 122 |
|
---|
| 123 | <seglistitem>
|
---|
| 124 | <seg>zstd,
|
---|
| 125 | zstdcat (link to zstd),
|
---|
| 126 | zstdgrep,
|
---|
| 127 | zstdless,
|
---|
| 128 | zstdmt (link to zstd), and
|
---|
| 129 | unzstd (link to zstd)
|
---|
| 130 | </seg>
|
---|
| 131 |
|
---|
| 132 | <seg>libzstd.so</seg>
|
---|
| 133 | </seglistitem>
|
---|
| 134 | </segmentedlist>
|
---|
| 135 |
|
---|
| 136 | <variablelist>
|
---|
| 137 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 138 | <?dbfo list-presentation="list"?>
|
---|
| 139 | <?dbhtml list-presentation="table"?>
|
---|
| 140 |
|
---|
| 141 | <varlistentry id="zstd">
|
---|
| 142 | <term><command>zstd</command></term>
|
---|
| 143 | <listitem>
|
---|
| 144 | <para>Compresses or decompresses files using the ZSTD format</para>
|
---|
| 145 | <indexterm zone="ch-system-zstd zstd">
|
---|
| 146 | <primary sortas="b-zstd">zstd</primary>
|
---|
| 147 | </indexterm>
|
---|
| 148 | </listitem>
|
---|
| 149 | </varlistentry>
|
---|
| 150 |
|
---|
| 151 | <varlistentry id="zstdgrep">
|
---|
| 152 | <term><command>zstdgrep</command></term>
|
---|
| 153 | <listitem>
|
---|
| 154 | <para>Runs <command>grep</command> on ZSTD compressed files</para>
|
---|
| 155 | <indexterm zone="ch-system-zstd zstdgrep">
|
---|
| 156 | <primary sortas="b-zstdgrep">zstdgrep</primary>
|
---|
| 157 | </indexterm>
|
---|
| 158 | </listitem>
|
---|
| 159 | </varlistentry>
|
---|
| 160 |
|
---|
| 161 | <varlistentry id="zstdless">
|
---|
| 162 | <term><command>zstdless</command></term>
|
---|
| 163 | <listitem>
|
---|
| 164 | <para>Runs <command>less</command> on ZSTD compressed files</para>
|
---|
| 165 | <indexterm zone="ch-system-zstd zstdless">
|
---|
| 166 | <primary sortas="b-zstdless">zstdless</primary>
|
---|
| 167 | </indexterm>
|
---|
| 168 | </listitem>
|
---|
| 169 | </varlistentry>
|
---|
| 170 |
|
---|
| 171 | <varlistentry id="libzstd">
|
---|
| 172 | <term><filename class="libraryfile">libzstd</filename></term>
|
---|
| 173 | <listitem>
|
---|
| 174 | <para>The library implementing lossless data
|
---|
| 175 | compression, using the ZSTD algorithm</para>
|
---|
| 176 | <indexterm zone="ch-system-zstd libzstd">
|
---|
| 177 | <primary sortas="c-libzstd">libzstd</primary>
|
---|
| 178 | </indexterm>
|
---|
| 179 | </listitem>
|
---|
| 180 | </varlistentry>
|
---|
| 181 |
|
---|
| 182 | </variablelist>
|
---|
| 183 |
|
---|
| 184 | </sect2>
|
---|
| 185 |
|
---|
| 186 | </sect1>
|
---|