pythonlinuxapt-getlibmagic

Which libmagic did python-magic use?


I'm using

python-magic

and I've installed it using

sudo apt-get remove libmagic-dev

In order to cite it properly, when i tried to find the authors online, i realized there are multiple libmagic libraries, e.g.

What is the source of the libmagic-dev found in the ubuntu apt-get repo?


Solution

  • python-magic depends on libmagic1

    $ apt-cache show python-magic | grep ^Depend
    Depends: python (>= 2.7.1-0ubuntu2), python (<< 2.8), libmagic1 (= 5.11-2ubuntu4)
    

    According to package information, libmagic1 is from http://www.darwinsys.com/file/

    $ apt-cache show libmagic1 | grep ^Homepage
    Homepage: http://www.darwinsys.com/file/
    

    If you follow the link, you can find the link that contains source codes: ftp://ftp.astron.com/pub/file/