file - Recognize the type of data in a file using "magic" numbers

Property Value
Distribution Debian 9 (Stretch)
Repository Debian Main i386
Package filename file_5.30-1+deb9u2_i386.deb
Package name file
Package version 5.30
Package release 1+deb9u2
Package architecture i386
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 62.56 KB
Installed size 91.00 KB
The file command is "a file type guesser", a command-line tool that
tells you in words what kind of data a file contains.
This package contains the file program itself.


Package Version Architecture Repository
file_5.30-1+deb9u2_amd64.deb 5.30 amd64 Debian Main
file - - -


Name Value
libc6 >= 2.4
libmagic1 = 1:5.30-1+deb9u2
zlib1g >= 1:1.1.4


Type URL
Binary Package file_5.30-1+deb9u2_i386.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.30-1+deb9u2) stable; urgency=high
* Avoid reading past the end of buffer. Closes: #901351
2017-09-01 - Salvatore Bonaccorso <>
file (1:5.30-1+deb9u1) stretch-security; urgency=high
* Non-maintainer upload by the Security Team.
* CVE-2017-1000249: stack based buffer overflow via specially crafted .notes
section in an ELF binary
2017-04-29 - Christoph Biedl <>
file (1:5.30-1) unstable; urgency=high
* New upstream version 5.30
* Cherry-pick commits that fix issues found by oss-fuzz
* Revert new features introduced since 1:5.29-3
2017-01-26 - Christoph Biedl <>
file (1:5.29-3) unstable; urgency=medium
* Restore full patch.
Closes: #852476
* Include all upstream commits since the 5.29 release
* Improve detection of Flash data. Closes: #838860
2016-12-13 - Christoph Biedl <>
file (1:5.29-2) unstable; urgency=medium
* Include all upstream commits since the 5.29 release. Addresses:
- Detect compiled YARA rules. Closes: #833872
- Detect old Word for Mac documents. Closes: #842117
* Disable detection of Algol68 files, way too many false positives
2016-10-25 - Christoph Biedl <>
file (1:5.29-1) unstable; urgency=medium
* New upstream version 5.29. Addresses (in order of appearance):
- "no read permission" if read from empty pipe. Closes: #508963
- Mistakes hungarian text as dos executables. Closes: #641012
- Does not recognize some GPG key public rings. Closes: #729286
- Show more information for MySQL files. Closes: #751826
- Linux kernel version string truncated. Closes: #756949
- Document file's '-d' option. Closes: #764462
- Detect JPEG-XR. Closes: #771303
- Detect Material exchange container format (mxf). Closes: #782744
- Strengthen detection of Embedded OpenType (EOT). Closes: #784572
- Mistakes some text as bitmap. Closes: #799352
- Dectect swp files from nano, vim, and kate. Closes: #803219
- Mistakes some SVG files as HTML. Closes: #829199
* Fix FTCBFS: Remove stage1 profile in favour of a proper arch/indep
split. Thanks Helmut Grohne. Closes: #841030
2016-07-21 - Christoph Biedl <>
file (1:5.28-4) unstable; urgency=low
* Ship the compiled magic file in a separate package so libmagic1 is
finally multi-arch compliant. Thanks Jakub Wilk for the final
impetus and suggestions. Closes: #670006 (take two)
* Declare compliance with Debian policy 3.9.8
2016-07-17 - Christoph Biedl <>
file (1:5.28-3) unstable; urgency=low
* Packaging cleanup, no code changes
- No longer ship file-dbg, use -dbgsym instead
- Remove cruft: lintian override, obsolete substvars, explicit
usage of xz
- Re-word package descriptions
2016-06-30 - Christoph Biedl <>
file (1:5.28-2) unstable; urgency=high
* Enable full hardening build
* Cherry-pick commits since 5.28 release:
- Avoid "can't break line" warnings from lintian
- Don't copy NULL
- Avoid double encoding with python3. Closes: #828833
2016-06-27 - Christoph Biedl <>
file (1:5.28-1) unstable; urgency=medium
* New upstream version 5.28

See Also

Package Description
filelight_16.08.3-1_i386.deb show where your diskspace is being used
filepp_1.8.0-5_all.deb generic perl-based file pre-processor for text files
fileschanged_0.6.5-2_i386.deb command-line utility that reports when files have been altered
filetea_0.1.16-4_i386.deb Web-based file sharing system
filetraq_0.2-15_all.deb Small utility to keep track of changes in config files
filezilla-common_3.24.0-1_all.deb Architecture independent files for filezilla
filezilla_3.24.0-1_i386.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.1-1_all.deb add-on sounds for Czech language spoken dialogs for fillets-ng
fillets-ng-data-nl_1.0.1-1_all.deb add-on sounds for Dutch language spoken dialogs for fillets-ng
fillets-ng-data_1.0.1-1_all.deb docs, graphics, music and international sounds for fillets-ng
fillets-ng_1.0.1-4+b1_i386.deb puzzle game about witty fish saving the world sokoban-style
filo_1.1.0-3+b1_i386.deb FILe and stream Operations
filter_2.6.3+ds1-3_i386.deb program that filters local email via forward/pipe
filtergen_0.12.8-1_i386.deb packet filter generator for various firewall systems