file-inst.xml 1.2 KB

12345678910111213141516171819202122232425262728293031323334
  1. <sect2>
  2. <title>Installation of File</title>
  3. <para>
  4. Install File by running the following commands:
  5. </para>
  6. <blockquote><literallayout>
  7. <userinput>./configure --prefix=/usr
  8. --datadir=/usr/share/misc &amp;&amp;</userinput>
  9. <userinput>make &amp;&amp;</userinput>
  10. <userinput>make install</userinput>
  11. </literallayout></blockquote>
  12. <para>
  13. File uses magic numbers to determine a file type. These magic numbers come with
  14. File in a plain text file. File internally compiles this database each time it
  15. is run. This is not the normal type of operation for File since compiling a
  16. plain text file each time is not the fastest way to do it. File offers an
  17. option "-C" to compile this magic number file. The reason this isn't done
  18. automatically is that some people like to work on the magic numbers. On the
  19. other hand many people didn't get it that they should compile the magic
  20. numbers, so the author of File added a warning when the plain text magic file
  21. is used. As we usually won't work on the plain text magic file, we
  22. compile this file, because it's faster, fixes that annoying warning and is how
  23. it was meant to be:
  24. </para>
  25. <blockquote><literallayout>
  26. <userinput>file -C</userinput>
  27. </literallayout></blockquote>
  28. </sect2>