[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[b06ca36] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[673b0d8] | 4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
[6370fa6] | 7 |
|
---|
[54e422c1] | 8 | <sect1 id="ch-system-file" role="wrap">
|
---|
| 9 | <?dbhtml filename="file.html"?>
|
---|
[5888299] | 10 |
|
---|
[e747759] | 11 | <sect1info condition="script">
|
---|
| 12 | <productname>file</productname>
|
---|
| 13 | <productnumber>&file-version;</productnumber>
|
---|
| 14 | <address>&file-url;</address>
|
---|
| 15 | </sect1info>
|
---|
| 16 |
|
---|
[54e422c1] | 17 | <title>File-&file-version;</title>
|
---|
[673b0d8] | 18 |
|
---|
[54e422c1] | 19 | <indexterm zone="ch-system-file">
|
---|
| 20 | <primary sortas="a-File">File</primary>
|
---|
| 21 | </indexterm>
|
---|
[3554fa3a] | 22 |
|
---|
[54e422c1] | 23 | <sect2 role="package">
|
---|
| 24 | <title/>
|
---|
[73aedd1d] | 25 |
|
---|
[54e422c1] | 26 | <para>The File package contains a utility for determining the type of a given
|
---|
| 27 | file or files.</para>
|
---|
[73aedd1d] | 28 |
|
---|
[54e422c1] | 29 | <segmentedlist>
|
---|
| 30 | <segtitle>&buildtime;</segtitle>
|
---|
| 31 | <segtitle>&diskspace;</segtitle>
|
---|
[73aedd1d] | 32 |
|
---|
[54e422c1] | 33 | <seglistitem>
|
---|
[e4a5635] | 34 | <seg>&file-ch6-sbu;</seg>
|
---|
| 35 | <seg>&file-ch6-du;</seg>
|
---|
[54e422c1] | 36 | </seglistitem>
|
---|
| 37 | </segmentedlist>
|
---|
[73aedd1d] | 38 |
|
---|
[54e422c1] | 39 | </sect2>
|
---|
[73aedd1d] | 40 |
|
---|
[54e422c1] | 41 | <sect2 role="installation">
|
---|
| 42 | <title>Installation of File</title>
|
---|
[73aedd1d] | 43 |
|
---|
[54e422c1] | 44 | <para>Prepare File for compilation:</para>
|
---|
[6370fa6] | 45 |
|
---|
[0445a3d] | 46 | <screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
|
---|
[5888299] | 47 |
|
---|
[54e422c1] | 48 | <para>Compile the package:</para>
|
---|
[673b0d8] | 49 |
|
---|
[0445a3d] | 50 | <screen><userinput remap="make">make</userinput></screen>
|
---|
[81fd230] | 51 |
|
---|
[db9c33e] | 52 | <para>To test the results, issue:</para>
|
---|
| 53 |
|
---|
| 54 | <screen><userinput remap="test">make check</userinput></screen>
|
---|
[81fd230] | 55 |
|
---|
[54e422c1] | 56 | <para>Install the package:</para>
|
---|
[81fd230] | 57 |
|
---|
[0445a3d] | 58 | <screen><userinput remap="install">make install</userinput></screen>
|
---|
[673b0d8] | 59 |
|
---|
[54e422c1] | 60 | </sect2>
|
---|
| 61 |
|
---|
[fd48baa] | 62 | <!-- ~~~~~~~~~~~~~~~~~~~~ ABI 32 ~~~~~~~~~~~~~~~~~~~~ -->
|
---|
| 63 |
|
---|
| 64 | <sect2 arch="ml_32,ml_all" role="installation">
|
---|
[b3f1ebb3] | 65 | <title>Installation of File - 32-bit</title>
|
---|
| 66 |
|
---|
| 67 | <para>Clean previous build:</para>
|
---|
| 68 |
|
---|
| 69 | <screen><userinput remap="pre">make distclean</userinput></screen>
|
---|
| 70 |
|
---|
| 71 | <para>Prepare File for compilation:</para>
|
---|
| 72 |
|
---|
| 73 | <screen><userinput remap="configure">CC="gcc -m32" ./configure \
|
---|
| 74 | --prefix=/usr \
|
---|
| 75 | --libdir=/usr/lib32 \
|
---|
| 76 | --host=i686-pc-linux-gnu</userinput></screen>
|
---|
| 77 |
|
---|
| 78 | <para>Compile the package:</para>
|
---|
| 79 |
|
---|
| 80 | <screen><userinput remap="make">make</userinput></screen>
|
---|
| 81 |
|
---|
| 82 | <para>Install the package:</para>
|
---|
| 83 |
|
---|
| 84 | <screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
|
---|
| 85 | cp -Rv DESTDIR/usr/lib32/* /usr/lib32
|
---|
| 86 | rm -rf DESTDIR</userinput></screen>
|
---|
| 87 |
|
---|
| 88 | </sect2>
|
---|
| 89 |
|
---|
[fd48baa] | 90 | <!-- ~~~~~~~~~~~~~~~~~~~~ ABI x32 ~~~~~~~~~~~~~~~~~~~~ -->
|
---|
| 91 |
|
---|
| 92 | <sect2 arch="ml_x32,ml_all" role="installation">
|
---|
[b3f1ebb3] | 93 | <title>Installation of File - x32-bit</title>
|
---|
| 94 |
|
---|
| 95 | <para>Clean previous build:</para>
|
---|
| 96 |
|
---|
| 97 | <screen><userinput remap="pre">make distclean</userinput></screen>
|
---|
| 98 |
|
---|
| 99 | <para>Prepare File for compilation:</para>
|
---|
| 100 |
|
---|
| 101 | <screen><userinput remap="configure">
|
---|
| 102 | CC="gcc -mx32" ./configure \
|
---|
| 103 | --prefix=/usr \
|
---|
| 104 | --libdir=/usr/libx32 \
|
---|
| 105 | --host=x86_64-pc-linux-gnux32</userinput></screen>
|
---|
| 106 |
|
---|
| 107 | <para>Compile the package:</para>
|
---|
| 108 |
|
---|
| 109 | <screen><userinput remap="make">make</userinput></screen>
|
---|
| 110 |
|
---|
| 111 | <para>Install the package:</para>
|
---|
| 112 |
|
---|
| 113 | <screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
|
---|
| 114 | cp -Rv DESTDIR/usr/libx32/* /usr/libx32
|
---|
| 115 | rm -rf DESTDIR</userinput></screen>
|
---|
| 116 |
|
---|
| 117 | </sect2>
|
---|
[54e422c1] | 118 |
|
---|
| 119 | <sect2 id="contents-file" role="content">
|
---|
| 120 | <title>Contents of File</title>
|
---|
| 121 |
|
---|
| 122 | <segmentedlist>
|
---|
| 123 | <segtitle>Installed programs</segtitle>
|
---|
| 124 | <segtitle>Installed library</segtitle>
|
---|
| 125 |
|
---|
| 126 | <seglistitem>
|
---|
| 127 | <seg>file</seg>
|
---|
[ab58d24] | 128 | <seg>libmagic.so</seg>
|
---|
[54e422c1] | 129 | </seglistitem>
|
---|
| 130 | </segmentedlist>
|
---|
| 131 |
|
---|
| 132 | <variablelist>
|
---|
| 133 | <bridgehead renderas="sect3">Short Descriptions</bridgehead>
|
---|
| 134 | <?dbfo list-presentation="list"?>
|
---|
| 135 | <?dbhtml list-presentation="table"?>
|
---|
| 136 |
|
---|
| 137 | <varlistentry id="file">
|
---|
| 138 | <term><command>file</command></term>
|
---|
| 139 | <listitem>
|
---|
| 140 | <para>Tries to classify each given file; it does this by performing
|
---|
| 141 | several tests—file system tests, magic number tests, and language
|
---|
| 142 | tests</para>
|
---|
| 143 | <indexterm zone="ch-system-file file">
|
---|
| 144 | <primary sortas="b-file">file</primary>
|
---|
| 145 | </indexterm>
|
---|
| 146 | </listitem>
|
---|
| 147 | </varlistentry>
|
---|
| 148 |
|
---|
| 149 | <varlistentry id="libmagic">
|
---|
[afba93b] | 150 | <term><filename class="libraryfile">libmagic</filename></term>
|
---|
[54e422c1] | 151 | <listitem>
|
---|
| 152 | <para>Contains routines for magic number recognition, used by the
|
---|
| 153 | <command>file</command> program</para>
|
---|
| 154 | <indexterm zone="ch-system-file libmagic">
|
---|
| 155 | <primary sortas="c-libmagic">libmagic</primary>
|
---|
| 156 | </indexterm>
|
---|
| 157 | </listitem>
|
---|
| 158 | </varlistentry>
|
---|
| 159 |
|
---|
| 160 | </variablelist>
|
---|
| 161 |
|
---|
| 162 | </sect2>
|
---|
[673b0d8] | 163 |
|
---|
| 164 | </sect1>
|
---|