source: chapter06/file.xml@ b06ca36

10.0 10.0-rc1 10.1 10.1-rc1 11.0 11.0-rc1 11.0-rc2 11.0-rc3 11.1 11.1-rc1 11.2 11.2-rc1 11.3 11.3-rc1 12.0 12.0-rc1 12.1 12.1-rc1 6.3 6.4 6.5 6.6 6.7 6.8 7.0 7.1 7.2 7.3 7.4 7.5 7.5-systemd 7.6 7.6-systemd 7.7 7.7-systemd 7.8 7.8-systemd 7.9 7.9-systemd 8.0 8.1 8.2 8.3 8.4 9.0 9.1 arm bdubbs/gcc13 ml-11.0 multilib renodr/libudev-from-systemd s6-init trunk xry111/arm64 xry111/arm64-12.0 xry111/clfs-ng xry111/lfs-next xry111/loongarch xry111/loongarch-12.0 xry111/loongarch-12.1 xry111/mips64el xry111/pip3 xry111/rust-wip-20221008 xry111/update-glibc
Last change on this file since b06ca36 was b06ca36, checked in by Manuel Canales Esparcia <manuel@…>, 17 years ago

Updated book sources to use DocBook-XML DTD 4.5

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

  • Property mode set to 100644
File size: 2.8 KB
Line 
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 <title>File-&file-version;</title>
12
13 <indexterm zone="ch-system-file">
14 <primary sortas="a-File">File</primary>
15 </indexterm>
16
17 <sect2 role="package">
18 <title/>
19
20 <para>The File package contains a utility for determining the type of a given
21 file or files.</para>
22
23 <segmentedlist>
24 <segtitle>&buildtime;</segtitle>
25 <segtitle>&diskspace;</segtitle>
26
27 <seglistitem>
28 <seg>&file-ch6-sbu;</seg>
29 <seg>&file-ch6-du;</seg>
30 </seglistitem>
31 </segmentedlist>
32
33 </sect2>
34
35 <sect2 role="installation">
36 <title>Installation of File</title>
37
38 <para>Apply a patch to fix a bug caused by an undefined constant:</para>
39
40<screen><userinput>patch -Np1 -i ../&file-reg_startend-patch;</userinput></screen>
41
42 <para>Prepare File for compilation:</para>
43
44<screen><userinput>./configure --prefix=/usr</userinput></screen>
45
46 <para>Compile the package:</para>
47
48<screen><userinput>make</userinput></screen>
49
50 <para>This package does not come with a test suite.</para>
51
52 <para>Install the package:</para>
53
54<screen><userinput>make install</userinput></screen>
55
56 </sect2>
57
58
59 <sect2 id="contents-file" role="content">
60 <title>Contents of File</title>
61
62 <segmentedlist>
63 <segtitle>Installed programs</segtitle>
64 <segtitle>Installed library</segtitle>
65
66 <seglistitem>
67 <seg>file</seg>
68 <seg>libmagic.{a,so}</seg>
69 </seglistitem>
70 </segmentedlist>
71
72 <variablelist>
73 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
74 <?dbfo list-presentation="list"?>
75 <?dbhtml list-presentation="table"?>
76
77 <varlistentry id="file">
78 <term><command>file</command></term>
79 <listitem>
80 <para>Tries to classify each given file; it does this by performing
81 several tests&mdash;file system tests, magic number tests, and language
82 tests</para>
83 <indexterm zone="ch-system-file file">
84 <primary sortas="b-file">file</primary>
85 </indexterm>
86 </listitem>
87 </varlistentry>
88
89 <varlistentry id="libmagic">
90 <term><filename class="libraryfile">libmagic</filename></term>
91 <listitem>
92 <para>Contains routines for magic number recognition, used by the
93 <command>file</command> program</para>
94 <indexterm zone="ch-system-file libmagic">
95 <primary sortas="c-libmagic">libmagic</primary>
96 </indexterm>
97 </listitem>
98 </varlistentry>
99
100 </variablelist>
101
102 </sect2>
103
104</sect1>
Note: See TracBrowser for help on using the repository browser.