6.12. File-5.22

The File package contains a utility for determining the type of a given file or files.

Approximate build time: 0.1 SBU
Required disk space: 16 MB

6.12.1. Installation of File

6.12.2. 32-bit Installation

Prepare File for 32-bit compilation:

./configure --prefix=/usr \
--libdir=/usr/lib32       \
CC="gcc -m32"

Compile the package:

make

To test the results, issue:

make check

Install the package:

make install

Clean up the build directory before moving on to the next platform:

make clean

6.12.3. x32 ABI Installation

Prepare File for x32 ABI compilation:

./configure --prefix=/usr \
--libdir=/usr/libx32      \
CC="gcc -mx32"

Compile the package:

make

To test the results, issue:

make check

Install the package:

make install

Clean up the build directory before moving on to the next platform:

make clean

6.12.4. 64-bit Installation

Prepare File for 64-bit compilation:

./configure --prefix=/usr

Compile the package:

make

To test the results, issue:

make check

Install the package:

make install

6.12.5. Contents of File

Installed programs: file
Installed library: libmagic.so

Short Descriptions

file

Tries to classify each given file; it does this by performing several tests—file system tests, magic number tests, and language tests

libmagic

Contains routines for magic number recognition, used by the file program