file.xml 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163
  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. <sect1 id="ch-system-file" role="wrap">
  8. <?dbhtml filename="file.html"?>
  9. <sect1info condition="script">
  10. <productname>file</productname>
  11. <productnumber>&file-version;</productnumber>
  12. <address>&file-url;</address>
  13. </sect1info>
  14. <title>File-&file-version;</title>
  15. <indexterm zone="ch-system-file">
  16. <primary sortas="a-File">File</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>The File package contains a utility for determining the type of a given
  21. file or files.</para>
  22. <segmentedlist>
  23. <segtitle>&buildtime;</segtitle>
  24. <segtitle>&diskspace;</segtitle>
  25. <seglistitem>
  26. <seg>&file-ch6-sbu;</seg>
  27. <seg>&file-ch6-du;</seg>
  28. </seglistitem>
  29. </segmentedlist>
  30. </sect2>
  31. <sect2 role="installation">
  32. <title>Installation of File</title>
  33. <para>Prepare File for compilation:</para>
  34. <screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
  35. <para>Compile the package:</para>
  36. <screen><userinput remap="make">make</userinput></screen>
  37. <para>To test the results, issue:</para>
  38. <screen><userinput remap="test">make check</userinput></screen>
  39. <para>Install the package:</para>
  40. <screen><userinput remap="install">make install</userinput></screen>
  41. </sect2>
  42. <!-- ~~~~~~~~~~~~~~~~~~~~ ABI 32 ~~~~~~~~~~~~~~~~~~~~ -->
  43. <sect2 arch="ml_32,ml_all" role="installation">
  44. <title>Installation of File - 32-bit</title>
  45. <para>Clean previous build:</para>
  46. <screen><userinput remap="pre">make distclean</userinput></screen>
  47. <para>Prepare File for compilation:</para>
  48. <screen><userinput remap="configure">CC="gcc -m32" ./configure \
  49. --prefix=/usr \
  50. --libdir=/usr/lib32 \
  51. --host=i686-pc-linux-gnu</userinput></screen>
  52. <para>Compile the package:</para>
  53. <screen><userinput remap="make">make</userinput></screen>
  54. <para>Install the package:</para>
  55. <screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
  56. cp -Rv DESTDIR/usr/lib32/* /usr/lib32
  57. rm -rf DESTDIR</userinput></screen>
  58. </sect2>
  59. <!-- ~~~~~~~~~~~~~~~~~~~~ ABI x32 ~~~~~~~~~~~~~~~~~~~~ -->
  60. <sect2 arch="ml_x32,ml_all" role="installation">
  61. <title>Installation of File - x32-bit</title>
  62. <para>Clean previous build:</para>
  63. <screen><userinput remap="pre">make distclean</userinput></screen>
  64. <para>Prepare File for compilation:</para>
  65. <screen><userinput remap="configure">CC="gcc -mx32" ./configure \
  66. --prefix=/usr \
  67. --libdir=/usr/libx32 \
  68. --host=x86_64-pc-linux-gnux32</userinput></screen>
  69. <para>Compile the package:</para>
  70. <screen><userinput remap="make">make</userinput></screen>
  71. <para>Install the package:</para>
  72. <screen><userinput remap="install">make DESTDIR=$PWD/DESTDIR install
  73. cp -Rv DESTDIR/usr/libx32/* /usr/libx32
  74. rm -rf DESTDIR</userinput></screen>
  75. </sect2>
  76. <sect2 id="contents-file" role="content">
  77. <title>Contents of File</title>
  78. <segmentedlist>
  79. <segtitle>Installed programs</segtitle>
  80. <segtitle>Installed library</segtitle>
  81. <seglistitem>
  82. <seg>file</seg>
  83. <seg>libmagic.so</seg>
  84. </seglistitem>
  85. </segmentedlist>
  86. <variablelist>
  87. <bridgehead renderas="sect3">Short Descriptions</bridgehead>
  88. <?dbfo list-presentation="list"?>
  89. <?dbhtml list-presentation="table"?>
  90. <varlistentry id="file">
  91. <term><command>file</command></term>
  92. <listitem>
  93. <para>Tries to classify each given file; it does this by performing
  94. several tests&mdash;file system tests, magic number tests, and language
  95. tests</para>
  96. <indexterm zone="ch-system-file file">
  97. <primary sortas="b-file">file</primary>
  98. </indexterm>
  99. </listitem>
  100. </varlistentry>
  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. </variablelist>
  112. </sect2>
  113. </sect1>