source: chapter06/file.xml@ db9c33e

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.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 db9c33e was db9c33e, checked in by Randy McMurchy <randy@…>, 16 years ago

Updated File to 4.26

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

  • Property mode set to 100644
File size: 3.2 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 <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>Fix the man page so that it will reflect recent changes to the
45 <parameter>-e</parameter> (<parameter>--exclude</parameter>)
46 parameter:</para>
47
48<screen><userinput remap="pre">sed -i -e '197,+1d' \
49 -e '189,+1d' \
50 -e 's/token$/tokens/' doc/file.man</userinput></screen>
51
52 <para>Prepare File for compilation:</para>
53
54<screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
55
56 <para>Compile the package:</para>
57
58<screen><userinput remap="make">make</userinput></screen>
59
60 <para>To test the results, issue:</para>
61
62<screen><userinput remap="test">make check</userinput></screen>
63
64 <para>Install the package:</para>
65
66<screen><userinput remap="install">make install</userinput></screen>
67
68 </sect2>
69
70
71 <sect2 id="contents-file" role="content">
72 <title>Contents of File</title>
73
74 <segmentedlist>
75 <segtitle>Installed programs</segtitle>
76 <segtitle>Installed library</segtitle>
77
78 <seglistitem>
79 <seg>file</seg>
80 <seg>libmagic.{a,so}</seg>
81 </seglistitem>
82 </segmentedlist>
83
84 <variablelist>
85 <bridgehead renderas="sect3">Short Descriptions</bridgehead>
86 <?dbfo list-presentation="list"?>
87 <?dbhtml list-presentation="table"?>
88
89 <varlistentry id="file">
90 <term><command>file</command></term>
91 <listitem>
92 <para>Tries to classify each given file; it does this by performing
93 several tests&mdash;file system tests, magic number tests, and language
94 tests</para>
95 <indexterm zone="ch-system-file file">
96 <primary sortas="b-file">file</primary>
97 </indexterm>
98 </listitem>
99 </varlistentry>
100
101 <varlistentry id="libmagic">
102 <term><filename class="libraryfile">libmagic</filename></term>
103 <listitem>
104 <para>Contains routines for magic number recognition, used by the
105 <command>file</command> program</para>
106 <indexterm zone="ch-system-file libmagic">
107 <primary sortas="c-libmagic">libmagic</primary>
108 </indexterm>
109 </listitem>
110 </varlistentry>
111
112 </variablelist>
113
114 </sect2>
115
116</sect1>
Note: See TracBrowser for help on using the repository browser.