3.6. File-5.47

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

Package Information

  • Download HTTP: https://astron.com/pub/file/file-5.47.tar.gz

  • Download SHA256 Sum: 45672fec165cb4cc1358a2d76b5d57d22876dcb97ab169427ac385cbe1d5597a

  • Download Size: 2,614 KB

  • Estimated Disk Space: 31.5M

  • Estimated Build Time: less than 0.5 SBU

File Dependencies

Required

Diffutils-3.12

3.6.1. Installation of File

Prepare File for compilation:

mkdir build
pushd build
  ../configure --disable-bzlib --disable-libseccomp \
               --disable-xzlib --disable-zlib
  make
popd

Now Configure the Package, issue:

./configure --prefix=/usr \
            --host=$LFS_TGT \
            --build=$(./config.guess)

To Compile the Package, issue:

make FILE_COMPILE=$(pwd)/build/src/file

Now Install the Package, issue:

make DESTDIR=$LFS install
rm -v $LFS/usr/lib/libmagic.la

3.6.2. Contents of File

Installed programs: PROGRAMS
Installed libraries: LIBRARIES
Installed directories: DIRECTORIES