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

Property Value
Distribution Debian 9 (Stretch)
Repository Debian Main i386
Package filename python-magic_5.30-1+deb9u2_all.deb
Package name python-magic
Package version 5.30
Package release 1+deb9u2
Package architecture all
Package type deb
Category devel::lang:python devel::library implemented-in::c implemented-in::python python role::devel-lib role::shared-lib use::analysing works-with::file
License -
Maintainer Christoph Biedl <>
Download size 47.16 KB
Installed size 73.00 KB
This package contains the Python bindings for the libmagic file type
detection library.


Package Version Architecture Repository
python-magic_5.30-1+deb9u2_all.deb 5.30 all Debian Main
python-magic - - -


Name Value
libmagic1 << 1:5.30-1+deb9u2.1~
libmagic1 >= 1:5.30-1+deb9u2
python:any << 2.8
python:any >= 2.7.5-5~


Name Value
python2.7-magic -


Type URL
Binary Package python-magic_5.30-1+deb9u2_all.deb
Source Package file

Install Howto

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




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
python-magics++_2.30.0-5_i386.deb python support for Magics++
python-magnum_3.1.1-5_all.deb OpenStack containers as a service - Python library
python-magnumclient-doc_2.3.1-1_all.deb client library for Magnum API - doc
python-magnumclient_2.3.1-1_all.deb client library for Magnum API - Python 2.x
python-mailer_0.8.1-2_all.deb Python module that simplifies sending email (Python 2)
python-mailutils_3.1.1-1_i386.deb GNU Mail abstraction library (Python interface)
python-mako-doc_1.0.6+ds1-2_all.deb documentation for the Mako Python library
python-mako_1.0.6+ds1-2_all.deb fast and lightweight templating for the Python platform
python-mandrill_1.0.57-1_all.deb CLI client and Python API library for Mandrill
python-manila-ui_2.5.1-0_all.deb OpenStack shared file system as a service - Dashboard plugin
python-manila_3.0.0-5_all.deb OpenStack shared file system as a service - Python libs
python-manilaclient-doc_1.11.0-2_all.deb OpenStack shared file system as a service - client doc
python-manilaclient_1.11.0-2_all.deb OpenStack shared file system as a service - Python 2.7 client
python-manuel_1.8.0-5_all.deb Python library for testable documents and documented tests
python-map-msgs_1.13.0-5_all.deb Python code for map-related ROS Messages