File (libmagic)

Version: 
5.30
Release date: 
Wednesday, 5 April, 2017

License:

Interface:

Authors/Port authors:

File is an implementation of the UNIX File command. It knows the "magic number" of several thousands of file types.

"Magic numbers" are used basically in UNIX environments to identify the binary files format.

This implementation source code is available under Ian Darwin's license (copyright but distributable).

This software is distributed in two modes:
  • as compressed package that you have to download and manually install; if prerequisites are required, you will have to manually install them too;
  • as RPM package; you can install it using your favorite rpm package manager, that will take care to download and install both the software and its prerequisites.
Choose the installation mode that you prefer. Please note that not all the versions are available in both the installation modes.

Installation with rpm

This program is installable using the rpm package manager. See below for the install string. Required prerequisites are automatically processed by the package manager and, if needed, downloaded and installed.

file-libs-5.30-2.oc00 (05/04/2017)
Repository: Netlabs stable
file-5.30-2.oc00 (05/04/2017)
Repository: Netlabs stable
changelog * Wed Apr 05 2017 Silvan Scherrer 5.30-2 - fix a regex issue (this will be rolled back, when libc issue 375 or libcx issue 35 is done) - added buildlevel information
file-devel-5.30-2.oc00 (05/04/2017)
Repository: Netlabs stable (note: development files, not needed by the end user)
file-debuginfo-5.30-2.oc00 (05/04/2017)
Repository: Netlabs stable

Manual installation

Program is distributed as ZIP package: download to temporary directory and unpack to destination folder, better if in path. Add the statement "SET MAGIC=X:/PATH_TO/magic.mgc" in CONFIG.SYS. See below for download link(s).

You can install the prerequisites with rpm running the following string in a command line:

yum install libc libcx libgcc1 libstdc++6 libstdc++ libsupc++6 libsupc++ libgcc-fwd

Following ones are the download links for manual installation:

File (libmagic) v. 5.0.4 (21/7/2020, A. Doff) Readme/What's new
File v5.04 for OS/2, patched and repackaged version for end users. File is an implementation of the Unix File(1) command. It knows the 'magic number' of several thousands of file types. OS/2'ified version with a.o. an icon, an INSTALL.CMD to create a WPS drop target for file objects, and some useless parameter no longer is required.
 hobbes.nmsu.edu/download/pub/os2/util/file/file.v5.04.os2-fu.zip
File (libmagic) v. 5.0.4 (23/1/2010) Readme/What's new
Hello all, I ported file v5.0.4 to Os/2 Located @ ftp://ftp.astron.com:/pub/file/file-5.0.4.tar.gz File v5.0.4 for OS/2. 2009-08-19 15:55 Christos Zoulas <christos@zoulas.com> * Fix 3 bugs (From Ian Darwin): - file_showstr could move one past the end of the array - parse_apple did not nul terminate the string in the overflow case - parse_mime truncated the wrong string in the overflow case 2009-07-15 10:05 Christos Zoulas <christos@zoulas.com> * Fix logic for including mygetopts.h * Make cdf.c compile again with debugging * Add the necessary field handling for crystal reports files to work 2009-06-23 01:34 Reuben Thomas <rrt@sc3d.org> * Stop "(if" identifying Lisp files, that's plain dumb! 2009-06-09 22:13 Reuben Thomas <rrt@sc3d.org> * Add a couple of missing MP3 MIME types. 2009-05-27 23:00 Reuben Thomas <rrt@sc3d.org> * Add full range of hash-bang tests for Python and Ruby. * Add MIME types for Python and Ruby scripts. 2009-05-13 10:44 Christos Zoulas <christos@zoulas.com> * off by one in parsing hw capabilities in elf (Cheng Renquan) File is an implementation of the Unix File(1) command. It knows the 'magic number' of several thousands of file types 2009-05-06 10:25 Christos Zoulas <christos@zoulas.com> * Avoid null dereference in cdf code (Drew Yao) * More cdf bounds checks and overflow checks 2009-05-01 18:37 Christos Zoulas <christos@zoulas.com> * Buffer overflow fixes from Drew Yao Also wanne thankz Christos Zoulas for fixing some warnings :)
 hobbes.nmsu.edu/download/pub/os2/dev/util/file.v5.0.4.os2.zip
File (libmagic) v. 4.26 (13/9/2008) Readme/What's new
Hello all, I ported File v4.26 for os/2 Located @ http://www.sfr-fresh.com/unix/misc/file-4.26.tar.gz File v4.26 for OS/2. File is an implementation of the Unix File(1) command. It knows the 'magic number' of several thousands of file types
 www.os2site.com/sw/util/file/file426.zip  local copy
Record updated last time on: 31/08/2020 - 21:54

Translate to...

Comments

Hello, I am looking for link to 5.30. Would that be downloadable only as source? Thanks Nithya

Hi Nithya, you can install it using the Yum package manager, please see above.

Add new comment