file - Determines file type using "magic" numbers

Property Value
Distribution Debian 8 (Jessie)
Repository Debian Main amd64
Package filename file_5.22+15-2+deb8u4_amd64.deb
Package name file
Package version 5.22+15
Package release 2+deb8u4
Package architecture amd64
Package type deb
Category admin::forensics implemented-in::c interface::commandline role::program scope::utility use::analysing use::scanning utils works-with::file
License -
Maintainer Christoph Biedl <>
Download size 59.05 KB
Installed size 76.00 KB
File tests each argument in an attempt to classify it. There are
three sets of tests, performed in this order: filesystem tests,
magic number tests, and language tests. The first test that
succeeds causes the file type to be printed.


Package Version Architecture Repository
file_5.22+15-2+deb8u4_i386.deb 5.22+15 i386 Debian Main
file - - -


Name Value
libc6 >= 2.4
libmagic1 = 1:5.22+15-2+deb8u4
zlib1g >= 1:1.1.4


Type URL
Binary Package file_5.22+15-2+deb8u4_amd64.deb
Source Package file

Install Howto

  1. Update the package index:
    # sudo apt-get update
  2. Install file deb package:
    # sudo apt-get install file




2018-06-11 - Christoph Biedl <>
file (1:5.22+15-2+deb8u4) oldstable; urgency=high
* Avoid reading past the end of buffer. Closes: #901351
2016-12-04 - Christoph Biedl <>
file (1:5.22+15-2+deb8u3) stable; urgency=medium
* Fix memory leak in magic loader. Closes: #840754
2016-05-09 - Christoph Biedl <>
file (1:5.22+15-2+deb8u2) stable; urgency=high
* Fix CVE-2015-8865:
Buffer over-write in finfo_open with malformed magic file.
2015-09-13 - Christoph Biedl <>
file (1:5.22+15-2+deb8u1) stable; urgency=medium
* Fix handling of file's --parameter option. Closes: #798410
- The file program segfaults after processing the --parameter
parameter. [commit FILE5_24-22-g27b4e34]
- Any --parameter values have no effect if used with
--files-from. [commit FILE5_24-23-g4ddb783]
2015-03-10 - Christoph Biedl <>
file (1:5.22+15-2) unstable; urgency=medium
* Restore detection of some jpeg files. Closes: #780095
2015-01-09 - Christoph Biedl <>
file (1:5.22+15-1) unstable; urgency=high
* Use upstream commit FILE5_22-11-ge452600 to include yet another
security fix (PR/411).
2015-01-03 - Christoph Biedl <>
file (1:5.22+2-1) unstable; urgency=medium
* New upstream version. Closes: #774219
* Use upstream commit FILE5_22-2-g9f0601f to include all recent
2014-12-21 - Christoph Biedl <>
file (1:5.21+15-1) unstable; urgency=high
* Fixes a security issue, urgency set to high
* New upstream version 5.21
- Limit number of elf program and sections processing
- Reduce the number of recursion levels
Closes: #773148 (CVE-2014-8116, CVE-2014-8117)
* Use upstream commit FILE5_21-15-ge7e96a9 to include all recent
2014-11-09 - Christoph Biedl <>
file (1:5.20-2) unstable; urgency=high
* Fixes a security issue, urgency set to high
* Cherry-pick upstream commit FILE5_20-5-g39c7ac1:
Fix note bounds reading, Francisco Alonso / Red Hat (CVE-2014-3710).
Closes: #768806
2014-10-19 - Christoph Biedl <>
file (1:5.20-1) unstable; urgency=low
* New upstream version 5.20. Addresses:
- more audio/video formats. Closes: #762561
- relax dis-detection of Perl scripts as AWK, part of #698569
* Update the syntax of the Build-Profiles field. Closes: #764218

See Also

Package Description
filelight_4.14.2-1_amd64.deb show where your diskspace is being used
filepp_1.8.0-4_all.deb generic perl-based file pre-processor for text files
fileschanged_0.6.5-1.2_amd64.deb command-line utility that reports when files have been altered
filetea_0.1.16-3+b1_amd64.deb Web-based file sharing system
filetraq_0.2-14_all.deb Small utility to keep track of changes in config files
filezilla-common_3.9.0.5-1_all.deb Architecture independent files for filezilla
filezilla_3.9.0.5-1_amd64.deb Full-featured graphical FTP/FTPS/SFTP client
filler_1.02-6.2_all.deb simple game where two players try to capture half the board
fillets-ng-data-cs_1.0.0-1_all.deb add-on sounds for Czech language spoken dialogs for fillets-ng
fillets-ng-data-nl_1.0.0-1_all.deb add-on sounds for Dutch language spoken dialogs for fillets-ng
fillets-ng-data_1.0.0-1_all.deb docs, graphics, music and international sounds for fillets-ng
fillets-ng_1.0.1-3_amd64.deb puzzle game about witty fish saving the world sokoban-style
filo_1.1+2011123001.1_amd64.deb FILe and stream Operations
filter_2.6.3-1_amd64.deb A program that filters local email via forward/pipe
filtergen_0.12.4-5.1_amd64.deb packet filter generator for various firewall systems