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