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

Property Value
Distribution Debian 9 (Stretch)
Repository Debian Main i386
Package filename python3-magic_5.30-1+deb9u2_all.deb
Package name python3-magic
Package version 5.30
Package release 1+deb9u2
Package architecture all
Package type deb
Category python
License -
Maintainer Christoph Biedl <>
Download size 47.23 KB
Installed size 73.00 KB
This package contains the Python 3 bindings for the libmagic file type
detection library.


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


Name Value
libmagic1 << 1:5.30-1+deb9u2.1~
libmagic1 >= 1:5.30-1+deb9u2
python3:any >= 3.3.2-2~


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

Install Howto

  1. Update the package index:
    # sudo apt-get update
  2. Install python3-magic deb package:
    # sudo apt-get install python3-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
python3-magics++_2.30.0-5_i386.deb Python3 support for Magics++
python3-magnumclient_2.3.1-1_all.deb client library for Magnum API - Python 3.x
python3-mailer_0.8.1-2_all.deb Python module that simplifies sending email (Python 3)
python3-mako_1.0.6+ds1-2_all.deb fast and lightweight templating for the Python 3 platform
python3-manilaclient_1.11.0-2_all.deb OpenStack shared file system as a service - Python 3.x client
python3-manuel_1.8.0-5_all.deb Python3 library for testable documents and documented tests
python3-mapbox-vector-tile_0.5.0+ds-4_all.deb Mapbox Vector Tile library for Python 3
python3-mapnik_0.0~20161104-ea5fd11-2_i386.deb Python 3 interface to the mapnik library
python3-mapproxy_1.9.0-3+deb9u1_all.deb open source proxy for geospatial data - Python 3 module
python3-marisa_0.2.4-8+b8_i386.deb Python3 bindings for MARISA
python3-markdown_2.6.8-1_all.deb text-to-HTML conversion library/tool (Python 3 version)
python3-markups_2.0.0-1_all.deb Wrapper around various text markups, implemented in Python 3
python3-markupsafe_0.23-3_i386.deb HTML/XHTML/XML string library for Python 3
python3-matplotlib-venn_0.11.5-1_all.deb Python 3 plotting area-proportional two- and three-way Venn diagrams
python3-matplotlib_2.0.0+dfsg1-2_i386.deb Python based plotting system in a style similar to Matlab (Python 3)