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-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-ch6-sbu;</seg>
|
---|
35 | <seg>&file-ch6-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 | <!-- ~~~~~~~~~~~~~~~~~~~~ ABI 32 ~~~~~~~~~~~~~~~~~~~~ -->
|
---|
63 |
|
---|
64 | <sect2 arch="ml_32,ml_all" role="installation">
|
---|
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 |
|
---|
90 | <!-- ~~~~~~~~~~~~~~~~~~~~ ABI x32 ~~~~~~~~~~~~~~~~~~~~ -->
|
---|
91 |
|
---|
92 | <sect2 arch="ml_x32,ml_all" role="installation">
|
---|
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>
|
---|
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>
|
---|
128 | <seg>libmagic.so</seg>
|
---|
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">
|
---|
150 | <term><filename class="libraryfile">libmagic</filename></term>
|
---|
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>
|
---|
163 |
|
---|
164 | </sect1>
|
---|