source: chapter06/file.xml@ 29723b9

Last change on this file since 29723b9 was 6a0e6f3, checked in by Matthew Burgess <matthew@…>, 20 years ago
  • Remove the spurious <info> tags that I thought were necessary but evidently aren't

git-svn-id: http://svn.linuxfromscratch.org/LFS/branches/LFS-RNG/BOOK@4387 4aa44e1e-78dd-0310-a6d2-fbcd4c07a689

  • Property mode set to 100644
File size: 2.3 KB
Line 
1<?xml version="1.0" encoding="ISO-8859-1"?>
2<!DOCTYPE section [
3 <!ENTITY % general-entities SYSTEM "../general.ent">
4 %general-entities;
5]>
6<section xmlns="http://docbook.org/docbook-ng"
7 xml:id="ch-system-file" xreflabel="File" role="wrap">
8<title>File-&file-version;</title>
9<?dbhtml filename="file.html"?>
10
11<indexterm zone="ch-system-file"><primary sortas="a-File">File</primary></indexterm>
12
13<section role="package"><title/>
14<para>The File package contains a utility for determining the type of files.</para>
15
16<segmentedlist>
17<segtitle>&buildtime;</segtitle>
18<segtitle>&diskspace;</segtitle>
19<seglistitem><seg>0.1 SBU</seg><seg>6.3 MB</seg></seglistitem>
20</segmentedlist>
21
22<segmentedlist>
23<segtitle>File installation depends on</segtitle>
24<seglistitem><seg>Bash, Binutils, Coreutils, Diffutils,
25GCC, Glibc, Grep, Make, Sed, Zlib</seg></seglistitem>
26</segmentedlist>
27</section>
28
29<section role="installation">
30<title>Installation of File</title>
31
32<para>Prepare File for compilation:</para>
33
34<screen><userinput>./configure --prefix=/usr</userinput></screen>
35
36<para>Compile the package:</para>
37
38<screen><userinput>make</userinput></screen>
39
40<para>Now install it:</para>
41
42<screen><userinput>make install</userinput></screen>
43
44</section>
45
46
47<section xml:id="contents-file" role="content"><title>Contents of File</title>
48
49<segmentedlist>
50<segtitle>Installed programs</segtitle>
51<segtitle>Installed library</segtitle>
52<seglistitem><seg>file</seg><seg>libmagic.[a,so]</seg></seglistitem>
53</segmentedlist>
54
55<variablelist><title>Short descriptions</title>
56
57<varlistentry xml:id="file">
58<term><command>file</command></term>
59<listitem>
60<indexterm zone="ch-system-file file"><primary sortas="b-file">file</primary></indexterm>
61<para>tries to classify each given file. It does
62this by performing several tests: file system tests, magic number tests, and
63language tests. The first test that succeeds determines the result.</para>
64</listitem>
65</varlistentry>
66
67<varlistentry xml:id="libmagic">
68<term><filename class="libraryfile">libmagic</filename></term>
69<listitem>
70<indexterm zone="ch-system-file libmagic"><primary sortas="c-libmagic">libmagic</primary></indexterm>
71<para>contains routines for magic number recognition, used by the <command>file</command> program.</para>
72</listitem>
73</varlistentry>
74</variablelist>
75
76</section>
77
78</section>
Note: See TracBrowser for help on using the repository browser.